terraform-provider-gcp

Managing GKE and its deployments with Terraform

两盒软妹~` 提交于 2019-12-08 07:19:43
问题 I can use terraform to deploy a Kubernetes cluster in GKE . Then I have set up the provider for Kubernetes as follows: provider "kubernetes" { host = "${data.google_container_cluster.primary.endpoint}" client_certificate = "${base64decode(data.google_container_cluster.primary.master_auth.0.client_certificate)}" client_key = "${base64decode(data.google_container_cluster.primary.master_auth.0.client_key)}" cluster_ca_certificate = "${base64decode(data.google_container_cluster.primary.master

terraform destroy produces cycle error when no cycles present

冷暖自知 提交于 2019-12-06 15:42:15
Terraform Version Terraform v0.12.1 Terraform Configuration Files main.tf in my root provider: provider "google" {} module "organisation_info" { source = "../../modules/organisation-info" top_level_domain = "smoothteam.fi" region = "us-central1" } module "stack_info" { source = "../../modules/stack-info" organisation_info = "${module.organisation_info}" } Here's module 'organisation-info': variable "top_level_domain" {} variable "region" {} data "google_organization" "organization" { domain = "${var.top_level_domain}" } locals { organization_id = "${data.google_organization.organization.id}"