terraform-provider-gcp

Deploy a Dataflow with Terraform

孤人 提交于 2021-02-11 14:27:03
问题 I'm trying to deploy a Dataflow template with Terraform in GCloud. There are several tutorial which include some terraform code. There are 2 options:Use module like the following link or use resource like the following link With both options I have the following error: Error: googleapi: got HTTP response code 502 with body: <!DOCTYPE html> <html lang=en> <meta charset=utf-8> <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"> <title>Error 502 (Server Error)!!1<

Terraform google_container_cluster adjust maximum retry budget

孤者浪人 提交于 2021-01-29 17:30:59
问题 I keep getting "Retry budget exhausted (80 attempts)", which takes about 10 minutes. Is there a way to reduce the maximum retry budget so I can iterate my configurations faster? Using https://registry.terraform.io/modules/terraform-google-modules/kubernetes-engine/google/7.3.0 回答1: Unfortunately maximum retry budget is not adjustable at the moment. You can take a look at the closely related issue registered on Google's issue tracker . If you're interested in this functionality I would

Cloud build service account permission to build

若如初见. 提交于 2021-01-29 04:32:01
问题 I have my env set as Cloud build app (Github app) to provision terraform through cloud build to Google Cloud Platform. The build is a simple cloud composer with cloud functions, that creates these resources along with the right service accounts and members. However, only the owner permission can execute this successfully, I want to have least privilege for the cloud build service account. I have used a lot of roles and nothing seems to be successful. i.e. create service account, editor,

Terraform GCP vm instance create - Error 403

▼魔方 西西 提交于 2021-01-28 09:20:37
问题 this is my first try to create VM on GCP Through terraform. here are the 2 files which i created. provider.tf provider "google" { credentials = "${file("xxxxxx.json")}" project = "project-1-200623" region = "us-central1" } compute.tf # Create a new instance resource "google_compute_instance" "default" { name = "test" machine_type = "n1-standard-1" zone = "us-central1-a" boot_disk { initialize_params { image = "debian-cloud/debian-8" } } network_interface { network = "default" access_config {}

Connecting to Google Cloud SQL instance on private IP from a VM with both private and public IPs fails

ぐ巨炮叔叔 提交于 2020-12-04 05:19:00
问题 What I'm trying to set up: Cloud SQL instance with private IP, Postgresql database A VM with one public IP and one private IP on same VPC network as the SQL instance is on (VM, SQL instance and VPC are all in the same region) VM has a service account with sufficient Cloud SQL client/viewer permissions SQL proxy on VM connecting to SQL instance. I run it with the -ip_address_types=PRIVATE argument I've found in some of the documentation. Configuration code Slightly simplified Terraform code

Connecting to Google Cloud SQL instance on private IP from a VM with both private and public IPs fails

前提是你 提交于 2020-12-04 05:17:39
问题 What I'm trying to set up: Cloud SQL instance with private IP, Postgresql database A VM with one public IP and one private IP on same VPC network as the SQL instance is on (VM, SQL instance and VPC are all in the same region) VM has a service account with sufficient Cloud SQL client/viewer permissions SQL proxy on VM connecting to SQL instance. I run it with the -ip_address_types=PRIVATE argument I've found in some of the documentation. Configuration code Slightly simplified Terraform code

Connecting to Google Cloud SQL instance on private IP from a VM with both private and public IPs fails

荒凉一梦 提交于 2020-12-04 05:17:33
问题 What I'm trying to set up: Cloud SQL instance with private IP, Postgresql database A VM with one public IP and one private IP on same VPC network as the SQL instance is on (VM, SQL instance and VPC are all in the same region) VM has a service account with sufficient Cloud SQL client/viewer permissions SQL proxy on VM connecting to SQL instance. I run it with the -ip_address_types=PRIVATE argument I've found in some of the documentation. Configuration code Slightly simplified Terraform code