How to use GCP provider in Terraform

0 votes
Hi Guys,

I am new to the GCP cloud. I want to use a GCP provider in Terraform. How can I do that?
Sep 11, 2020 in Terraform by akhtar
• 38,170 points
138 views

1 answer to this question.

0 votes

Hi@akhtar,

Terraform supports many providers to deploy the applications. For the GCP cloud, it has google providers. This provider helps to authenticate to your project as shown below.

provider "google" {
project = "Nadeem-gcp-production"
region = "asia-southeast1"
zone = "asia-southeast1-a"
}
answered Sep 12, 2020 by MD
• 95,060 points

Related Questions In Terraform

0 votes
1 answer

How to create a service account key in GCP Cloud using Terraform?

Hi@akhtar, You need to create a service account ...READ MORE

answered Sep 12, 2020 in Terraform by MD
• 95,060 points
251 views
0 votes
1 answer

How to create a VPC in GCP Cloud using Terraform code?

Hi@akhtar, You can create your own VPC in ...READ MORE

answered Sep 13, 2020 in Terraform by MD
• 95,060 points
291 views
0 votes
1 answer

How to create subnets in GCP cloud using Terraform?

Hi@akhtar, You need to create a network first. ...READ MORE

answered Sep 13, 2020 in Terraform by MD
• 95,060 points
251 views
0 votes
2 answers

How to create a customized IAM policy in GCP using Terraform?

You can visit Terraform official site for ...READ MORE

answered Sep 13, 2020 in Terraform by Peter
• 180 points
282 views
0 votes
1 answer

Error:No credentials loaded. To use your gcloud credentials, run 'gcloud auth application-default login'.

Hi@akhtar, You are trying to connect the GCP ...READ MORE

answered Sep 12, 2020 in Terraform by MD
• 95,060 points
952 views
0 votes
1 answer

Create a project in GCP using Terraform.

Hi@akhtar, Terraform has a resource named google_project. This ...READ MORE

answered Sep 13, 2020 in Terraform by MD
• 95,060 points
139 views
0 votes
1 answer

How to set an IAM policy for a project in GCP using Terraform?

Hi@akhtar, You can create a policy and give ...READ MORE

answered Sep 13, 2020 in Terraform by akhtar
• 38,170 points
160 views
0 votes
1 answer

How to launch an instance in GCP using Terraform?

Hi@akhtar, You can use the google_compute_instance resource in ...READ MORE

answered Sep 12, 2020 in Terraform by MD
• 95,060 points
110 views
0 votes
1 answer

How to create a service account in GCP using Terraform?

Hi@akhtar, You can create a service account in ...READ MORE

answered Sep 12, 2020 in Terraform by MD
• 95,060 points
263 views