terraform-provider-gcp Questions

4

Solved

What is the Google Cloud Platform mechanism for locking state file when using Terraform? Something like DynamoDB on AWS... thanks

7

googleapi: Error 403: Permission denied on resource project shared_vpc_host_name., forbidden I am trying to create shared vpc and service project using Terraform project facotry module and I am run...

4

I am trying to allocate the roles to the user in the Terraform file in a GCP project, but I am getting the below error : Error: Request "Create IAM Members roles/compute.networkAdmin user:[em...

6

Solved

Is there a way in Terraform to check if a resource in Google Cloud exists prior to trying to create it? I want to check if the following resources below exist in my CircleCI CI/CD pipeline during a...
Gael asked 12/1, 2022 at 23:4

6

Solved

I tried to automate the Shared VPC creation on GCP by using Terraform. I have enabled all the access to my service account (Org Admin, XpnAdmin, Storage Admin, Compute admin, Billing Admin) But wh...
Acidimetry asked 6/4, 2020 at 5:49

5

Solved

I have a lot of Terraform modules written in Terraform 0.11 using gcp-provider of Terraform and want to upgrade the same to Terraform 0.12. For this purpose, I need to keep both the versions insta...
Trueman asked 7/2, 2020 at 12:44

10

Solved

Hi I am playing around with kubernetes and terraform in a google cloud free tier account (trying to use the free 300$). Here is my terraform resource declaration, it is something very standard I co...
Mayotte asked 17/12, 2022 at 17:48

2

Solved

I am setting up a CI&CD environment for a GCP project involves Cloud Run. While setting up everything via Terraform is pretty much straightforward, I cannot figure out how to update the environ...

3

Solved

I have set-up a terraform project with a remote back-end on GCP. Now when I want to deploy the infrastructure, I run into issues with credentials. I have a credentials file in \home\mike\.config\...
Vertical asked 8/3, 2019 at 17:42

1

Terraform 1.4.5 on Windows, authenticating as individual user via gcloud auth application-default login. I suddenly started getting this error a few hours whenever I do any operating involving the ...

2

Solved

I am declaring a google_logging_metric resource in Terraform (using version 0.11.14) I have the following declaration resource "google_logging_metric" "my_metric" { description = "Check for logs...
Electrodialysis asked 17/3, 2020 at 12:2

4

Solved

I'm trying to create a BQ table using Terraform ingesting data from Google Sheets here is my external_data_configuration block resource "google_bigquery_table" "sheet" { dataset_id = google_bigqu...
Radiosurgery asked 6/6, 2020 at 15:17

4

Solved

I am trying to create resources using Terraform in a new GCP project. As part of that I want to set roles/storage.legacyBucketWriter to the Google managed service account which runs storage transfe...

3

i have trouble in gitlab ci, when am executing terraform apply locally all is ok(kubectl is working correctly in gitlab ci container and locally), but in executing the same script in gitlab ci thro...
Beamon asked 30/5, 2020 at 10:23

4

When I try to run steps: - id: Plan Terraform name: hashicorp/terraform:light args: - plan in Cloud Build, I get the error: Error: Error reading Project Service foo/cloudbuild.googleapis.com: g...

2

Solved

The Oauth2 setup help says to use the https://console.cloud.google.com/apis/credentials page to setup credentials for Oauth2. However I can find no documentation on any RESTful or gRPC API to accom...

4

How do I configure Terraform Cloud to authenticate with Google Cloud Platform (GCP)? Right now, my configuration is looking like this: provider "google" { project = "my-project-id&q...

6

Solved

I am very new to GCP with terraform and I want to deploy all my modules using centralized tools. Is there any way to remove the step of enabling google API's every time so that deployment is not i...
Karilla asked 26/11, 2019 at 16:28

1

Solved

Hi terraform mates out there I want to automate the role assignments process for service accounts and users on the Google Cloud Platform. I am actually thinking of creating IAM custom roles to get ...
Pam asked 2/2, 2023 at 11:38

2

Solved

How do I force Terraform to rebuild its plans and tfstate files from scratch? I'm considering moving my IAC from GCP's Deployment Manager to Terraform, so I thought I'd run a test, since my TF is p...
Barrel asked 17/12, 2020 at 3:1

2

Solved

I've created a GKE cluster with Terraform and I also want to manage Kubernetes with Terraform as well. However, I don't know how to pass GKE's credentials to the kubernetes provider. I followed th...

3

Solved

Are there any scripts that automate persistent disks formatting and attaching to the Google Cloud VM instance, instead of doing formatting & mounting steps? The persistent disk is created with...

2

Solved

On GCP, I'm trying to enable "Identity and Access Management (IAM) API" with this Terraform code below: provider "google" { credentials = file("myCredentials.json") ...

11

I'm trying to deploy a bitbucket pipeline using terraform v0.14.3 to create resources in google cloud. after running terraform command, the pipeline fails with this error: Error: Invalid legacy pro...
Hoseahoseia asked 21/12, 2020 at 16:53

2

I'm trying to use kubernetes-alpha provider in Terraform, but I have "Failed to construct REST client" error message. I'm using tfk8s to convert my yaml file to terraform code. I make the...

© 2022 - 2025 — McMap. All rights reserved.