Skip to content

Instantly share code, notes, and snippets.

@jwtracy
Created May 25, 2022 18:04
Show Gist options
  • Save jwtracy/774261188c54fdefee09649674ccabbf to your computer and use it in GitHub Desktop.
Save jwtracy/774261188c54fdefee09649674ccabbf to your computer and use it in GitHub Desktop.
GKE and ASM Terraform failure
Stopping operation...
β•·
β”‚ Error: timeout while waiting for plugin to start
β”‚
β”‚
β•΅
β•·
β”‚ Error: Plugin did not respond
β”‚
β”‚ with module.platform_eng_environments.module.plato_admin_instance.module.gke.module.gcloud_delete_default_kube_dns_configmap.module.gcloud_kubectl.null_resource.module_depends_on[0],
β”‚ on .terraform/modules/platform_eng_environments.plato_admin_instance.gke.gcloud_delete_default_kube_dns_configmap/main.tf line 62, in resource "null_resource" "module_depends_on":
β”‚ 62: resource "null_resource" "module_depends_on" {
β”‚
β”‚ The plugin encountered an error, and failed to respond to the
β”‚ plugin.(*GRPCProvider).ValidateResourceConfig call. The plugin logs may
β”‚ contain more details.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_admin_instance.module.firewall_rules.google_compute_firewall.rules["deny-gke-egress"],
β”‚ on .terraform/modules/platform_eng_environments.plato_admin_instance.firewall_rules/modules/firewall-rules/main.tf line 17, in resource "google_compute_firewall" "rules":
β”‚ 17: resource "google_compute_firewall" "rules" {
β”‚
β”‚ The plugin.(*GRPCProvider).PlanResourceChange request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_admin_instance.module.firewall_rules.google_compute_firewall.rules["default-deny-egress"],
β”‚ on .terraform/modules/platform_eng_environments.plato_admin_instance.firewall_rules/modules/firewall-rules/main.tf line 17, in resource "google_compute_firewall" "rules":
β”‚ 17: resource "google_compute_firewall" "rules" {
β”‚
β”‚ The plugin.(*GRPCProvider).PlanResourceChange request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_admin_instance.module.firewall_rules.google_compute_firewall.rules["allow-gke-egress"],
β”‚ on .terraform/modules/platform_eng_environments.plato_admin_instance.firewall_rules/modules/firewall-rules/main.tf line 17, in resource "google_compute_firewall" "rules":
β”‚ 17: resource "google_compute_firewall" "rules" {
β”‚
β”‚ The plugin.(*GRPCProvider).PlanResourceChange request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_admin_instance.module.firewall_rules.google_compute_firewall.rules["allow-ipv4-egress"],
β”‚ on .terraform/modules/platform_eng_environments.plato_admin_instance.firewall_rules/modules/firewall-rules/main.tf line 17, in resource "google_compute_firewall" "rules":
β”‚ 17: resource "google_compute_firewall" "rules" {
β”‚
β”‚ The plugin.(*GRPCProvider).PlanResourceChange request was cancelled.
β•΅
β•·
β”‚ Error: Invalid for_each argument
β”‚
β”‚ on .terraform/modules/platform_eng_environments.plato_admin_project/modules/project/main.tf line 137, in resource "google_project_iam_binding" "authoritative":
β”‚ 137: for_each = local.iam
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ local.iam will be known only after apply
β”‚
β”‚ The "for_each" value depends on resource attributes that cannot be
β”‚ determined until apply, so Terraform cannot predict how many instances will
β”‚ be created. To work around this, use the -target argument to first apply
β”‚ only the resources that the for_each depends on.
β•΅
β•·
β”‚ Error: Invalid template interpolation value
β”‚
β”‚ on .terraform/modules/platform_eng_environments.plato_dev_instance.asm/modules/asm/hub.tf line 21, in resource "google_gke_hub_membership" "membership":
β”‚ 21: membership_id = "${data.google_container_cluster.asm.name}-membership"
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ data.google_container_cluster.asm.name is null
β”‚
β”‚ The expression result is null. Cannot include a null value in a string
β”‚ template.
β•΅
β•·
β”‚ Error: Invalid template interpolation value
β”‚
β”‚ on .terraform/modules/platform_eng_environments.plato_dev_instance.asm/modules/asm/hub.tf line 24, in resource "google_gke_hub_membership" "membership":
β”‚ 24: resource_link = "//container.googleapis.com/${data.google_container_cluster.asm.id}"
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ data.google_container_cluster.asm.id is null
β”‚
β”‚ The expression result is null. Cannot include a null value in a string
β”‚ template.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_dev_instance.provider["registry.terraform.io/hashicorp/kubernetes"],
β”‚ on .terraform/modules/platform_eng_environments.plato_dev_instance/modules/plato/gke.tf line 69, in provider "kubernetes":
β”‚ 69: provider "kubernetes" {
β”‚
β”‚ The plugin.(*GRPCProvider).ValidateProviderConfig request was cancelled.
β•΅
β•·
β”‚ Error: Invalid template interpolation value
β”‚
β”‚ on .terraform/modules/platform_eng_environments.plato_prod_instance.asm/modules/asm/hub.tf line 21, in resource "google_gke_hub_membership" "membership":
β”‚ 21: membership_id = "${data.google_container_cluster.asm.name}-membership"
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ data.google_container_cluster.asm.name is null
β”‚
β”‚ The expression result is null. Cannot include a null value in a string
β”‚ template.
β•΅
β•·
β”‚ Error: Invalid template interpolation value
β”‚
β”‚ on .terraform/modules/platform_eng_environments.plato_prod_instance.asm/modules/asm/hub.tf line 24, in resource "google_gke_hub_membership" "membership":
β”‚ 24: resource_link = "//container.googleapis.com/${data.google_container_cluster.asm.id}"
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ data.google_container_cluster.asm.id is null
β”‚
β”‚ The expression result is null. Cannot include a null value in a string
β”‚ template.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_staging_instance.module.app_service_account["release-rotator"].google_service_account_iam_member.main,
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.app_service_account/modules/workload-identity/main.tf line 75, in resource "google_service_account_iam_member" "main":
β”‚ 75: resource "google_service_account_iam_member" "main" {
β”‚
β”‚ The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_staging_instance.module.app_service_account["prometheus-metrics"].google_service_account_iam_member.main,
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.app_service_account/modules/workload-identity/main.tf line 75, in resource "google_service_account_iam_member" "main":
β”‚ 75: resource "google_service_account_iam_member" "main" {
β”‚
β”‚ The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_staging_instance.module.app_service_account["apiserver"].google_service_account_iam_member.main,
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.app_service_account/modules/workload-identity/main.tf line 75, in resource "google_service_account_iam_member" "main":
β”‚ 75: resource "google_service_account_iam_member" "main" {
β”‚
β”‚ The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_staging_instance.module.app_service_account["generic-controller"].google_service_account_iam_member.main,
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.app_service_account/modules/workload-identity/main.tf line 75, in resource "google_service_account_iam_member" "main":
β”‚ 75: resource "google_service_account_iam_member" "main" {
β”‚
β”‚ The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_staging_instance.module.app_service_account["external-secrets"].google_service_account_iam_member.main,
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.app_service_account/modules/workload-identity/main.tf line 75, in resource "google_service_account_iam_member" "main":
β”‚ 75: resource "google_service_account_iam_member" "main" {
β”‚
β”‚ The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_staging_instance.module.app_service_account["k8s-controller"].google_service_account_iam_member.main,
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.app_service_account/modules/workload-identity/main.tf line 75, in resource "google_service_account_iam_member" "main":
β”‚ 75: resource "google_service_account_iam_member" "main" {
β”‚
β”‚ The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled.
β•΅
β•·
β”‚ Error: Invalid template interpolation value
β”‚
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.asm/modules/asm/hub.tf line 21, in resource "google_gke_hub_membership" "membership":
β”‚ 21: membership_id = "${data.google_container_cluster.asm.name}-membership"
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ data.google_container_cluster.asm.name is null
β”‚
β”‚ The expression result is null. Cannot include a null value in a string
β”‚ template.
β•΅
β•·
β”‚ Error: Invalid template interpolation value
β”‚
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.asm/modules/asm/hub.tf line 24, in resource "google_gke_hub_membership" "membership":
β”‚ 24: resource_link = "//container.googleapis.com/${data.google_container_cluster.asm.id}"
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ data.google_container_cluster.asm.id is null
β”‚
β”‚ The expression result is null. Cannot include a null value in a string
β”‚ template.
β•΅
β•·
β”‚ Error: Request cancelled
β”‚
β”‚ with module.platform_eng_environments.module.plato_staging_instance.module.asm.kubernetes_namespace.system,
β”‚ on .terraform/modules/platform_eng_environments.plato_staging_instance.asm/modules/asm/main.tf line 34, in resource "kubernetes_namespace" "system":
β”‚ 34: resource "kubernetes_namespace" "system" {
β”‚
β”‚ The plugin.(*GRPCProvider).PlanResourceChange request was cancelled.
β•΅
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment