google / prometheus-slo-burn-example

An end to end example of implementing SLOs with prometheus, grafana and Go.

Home Page:https://grafana.prometheus-slo.cre-example.app/d/slosloslo/slo-dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't terraform in cloud shell

stevemcghee opened this issue · comments

heyo. trying to run this in cloud shell, i get:

$ echo $REGION
us-central1
$ terraform apply -var "gcp_region=$REGION"
Error: Unsupported block type
  on main.tf line 48, in resource "google_container_node_pool" "pool0":
  48:     metadata {
Blocks of type "metadata" are not expected here. Did you mean to define
argument "metadata"? If so, use the equals sign to assign it a value.

FWIW, I downloaded the terraform 64 bit linux binary from:
https://www.terraform.io/downloads.html

$ terraform -v
Terraform v0.12.0
+ provider.google v2.7.0

Ah interesting, I did all of my development with Terraform v0.11.13. Will look into.

ah great. using 11.13 as a workaround is 👍

Since Terraform 0.12.* you now require to add an equal '=' character after metadata:

# CORRECT
metadata = {         <<< CORRECT. NOTICE THE '=' CHARACTER
    ...
}

# WRONG 
metadata {             <<< WRONG !!! MISSING EQUALS '=' CHARACTER
   ...
}

metadata =

This fixed thanks.