Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External references from destroy provisioners are deprecated #405

Closed
s1mark opened this issue Jan 21, 2020 · 0 comments · Fixed by #420
Closed

External references from destroy provisioners are deprecated #405

s1mark opened this issue Jan 21, 2020 · 0 comments · Fixed by #420
Labels
bug Something isn't working

Comments

@s1mark
Copy link

s1mark commented Jan 21, 2020

module version - v6.2.0
terraform version - 0.12.19 (also affected version 0.12.18)

Warning: External references from destroy provisioners are deprecated
  on .terraform/modules/gke/modules/beta-private-cluster/cluster.tf line 365, in resource "null_resource" "wait_for_cluster":
 365:     command = "${path.module}/scripts/wait-for-cluster.sh ${var.project_id} ${var.name}"
Destroy-time provisioners and their connection configurations may only
reference attributes of the related resource, via 'self', 'count.index', or
'each.key'.
References to other resources during the destroy phase can cause dependency
cycles and interact poorly with create_before_destroy.
(and 2 more similar warnings elsewhere)

provisioner "local-exec" {
when = destroy
command = "${path.module}/scripts/wait-for-cluster.sh ${var.project_id} ${var.name}"
}

Probably other sub-modules also affected

Discussion thread at HashiCorp:
hashicorp/terraform#23679

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants