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

Warning: External references from destroy provisioners are deprecated #15

Open
ximon18 opened this issue Jan 20, 2020 · 0 comments
Open

Comments

@ximon18
Copy link
Member

ximon18 commented Jan 20, 2020

Warning: External references from destroy provisioners are deprecated

  on ../lib/docker/main.tf line 99, in resource "null_resource" "setup_docker":
  99:     environment = merge(local.docker_env_vars, local.krill_env_vars)

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 4 more similar warnings elsewhere)

Caused by this fragment from the Terraform 0.12.18 release notes:

Inside provisioner blocks that have when = destroy set, and inside any connection blocks that are used by such provisioner blocks, it is now deprecated to refer to any objects other than self, count, and each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant