I would like to create one variable for various GCP scopes, and then use that variable (of scopes) when I create GCP compute instances.
https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/set-scopes#--scopes
In other words, I would like to AVOID having to write out this long mess of URLs when we make each new instance. What is the best way to do this with Terraform?
service_account {
scopes = ["https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring.write",
"https://www.googleapis.com/auth/pubsub",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/trace.append",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/cloudplatformprojects",
"https://www.googleapis.com/auth/cloudplatformprojects.readonly"]
}
terraform --version Terraform v0.12.12 + provider.google v2.17.0