GoogleCloudPlatform / gke-terraform-generator

gke-tf was created to streamline the creation of customized Terraform source files that build GKE clusters and supporting resources in GCP.
Apache License 2.0
55 stars 24 forks source link

Issue when trying this in us-central1 #5

Closed hbougdal closed 4 years ago

hbougdal commented 5 years ago

I have set region/zone to us-central1/us-central1-a, but the demo has failed. By looking at the logs, it seems that the script tried to create a NAT Gateway in us-west1... why ? given that the default region is us-central1.

`google_compute_router.router: Creation complete after 9s [id=us-west1/test-cluster-cloud-router] google_compute_firewall.bastion-ssh: Still creating... [10s elapsed] google_compute_subnetwork.subnetwork: Still creating... [10s elapsed] google_compute_firewall.bastion-ssh: Creation complete after 16s [id=test-cluster-bastion-ssh] google_compute_subnetwork.subnetwork: Still creating... [20s elapsed] google_compute_subnetwork.subnetwork: Still creating... [30s elapsed] google_compute_subnetwork.subnetwork: Creation complete after 39s [id=us-west1/my-subnet] google_compute_router_nat.nat: Creating... google_compute_instance.instance: Creating...

Error: Error waiting to patch router us-west1/test-cluster-cloud-router: Error waiting for Patching router: error while retrieving operation: googleapi: Error 401: Invalid Credentials, authError

on network.tf line 109, in resource "google_compute_router_nat" "nat": 109: resource "google_compute_router_nat" "nat" {

Error: Error waiting for instance to create: error while retrieving operation: Get https://www.googleapis.com/compute/v1/projects/my-apigee-project/zones/us-west1-a/operations/operation-1564478751498-58ee2983de116-77b5505e-ecefd8fe?alt=json&prettyPrint=false: oauth2/google: incomplete token received from metadata

on network.tf line 169, in resource "google_compute_instance" "instance": 169: resource "google_compute_instance" "instance" { `

chrislovecnm commented 4 years ago

This should be fixed now