Skip to main content

Deploy DigiTrade to GCP

N
Written by Niyaz

Use the Setting Up Automation tab of a client to install the prerequisites, configure the instance and download the Terraform package that builds the infrastructure in your GCP account.

Steps

  1. Open the client under Clients, then select the Setting Up Automation tab. Review Billing account and GCP Account Email.

  2. On the first step, Install Terraform, use the Install Terraform link. The project requires Terraform to be installed on your local machine.

  3. Select Next to open step Install the Google Cloud SDK, then use the Install the Google Cloud SDK link. You need the gcloud command-line tool to authenticate with GCP.

  4. Authenticate your session by running this command in a terminal.

    gcloud auth application-default login

  5. Select Next to open step Configure Instance. Optional: To change the instance settings, open Advanced settings, set Region, Machine type, File System Disk Size (in GB) and Data Base Disk Size (in GB), then select Apply. Use the region picker link to choose the best option for Region.

  6. Select Next to open step Initialize, then select Download ZIP.

  7. Initialize Terraform by running this command, which downloads the necessary provider plugins.

    terraform init

  8. Create an execution plan by running this command, which shows what resources Terraform creates.

    terraform plan -out=tfplan

  9. Apply the configuration by running this command, which builds the infrastructure in your GCP account.

    terraform apply -auto-approve tfplan

Related

Did this answer your question?