Use the Setting Up Automation tab on a client record to enter that client's GCP account details and work through the four setup stages.
Before you begin
Install Terraform on your local machine.
Install the Google Cloud SDK, which provides the
gcloudcommand-line tool that authenticates you with GCP.
Steps
On the client record, select the Setting Up Automation tab.
Enter values in Billing account and GCP Account Email.
Select Request Access. On the empty form, Request Access is unavailable.
In stage 1 Install Terraform, follow the Install Terraform link.
Select Next. Stage 2 Install the Google Cloud SDK opens.
Follow the Install the Google Cloud SDK link. Install the SDK.
Authenticate your session by running this command.
gcloud auth application-default login
Select Next. Stage 3 Configure Instance opens. The form starts with Region set to europe-west8, Machine Type set to e2-medium, and 10 for each disk size.
Under Advanced settings, complete Region, Machine type, File System Disk Size (in GB) and Data Base Disk Size (in GB). Use the region picker link to choose the best option for Region. Each disk size field has a minimum of 10.
Select Apply.
Select Next. Stage 4 Initialize opens.
Select Download ZIP.
Initialize Terraform to download the necessary provider plugins.
terraform init
Create an execution plan that shows what resources Terraform will create.
terraform plan -out=tfplan
Apply the configuration to build the infrastructure in your GCP account.
terraform apply -auto-approve tfplan
If something goes wrong
If you need to change an earlier stage, select Back.
Related
