Draft: Terraform-GCP. Added resources for compute and container services enable
Added google_project_service.container_service
and google_project_service.compute_service
resources which enable appropriate GCP services right from Terraform. So you could spin up cluster on freshly create GCP project without needed to manually run
gcloud services enable compute.googleapis.com
gcloud services enable container.googleapis.com
This resource is idempotent, so if service is already enabled it will not error out. Also this resources have disable_on_destroy = false
argument, so GCP service will not be disabled after cluster deletion with terraform destroy
.
Edited by crstin