Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cycle reported when using resource attribute interpolation in local-exec destroy provisioner #16237
I have a relatively simple configuration that contains an
For... reasons... my use case isn't really a candidate for a remote-exec destroy provisioner.
Terraform Configuration Files
Steps to Reproduce
@jbardin Just a heads up that I figured out today that this issue is much simpler than I'd originally thought... it has nothing to do with the EBS Volume or Volume Attachment. It seems that the cycle shows up any time I try to interpolate a resource attribute in its own destroy-time local-exec provisioner.
referenced this issue
Nov 29, 2017
I think I just hit this in an unrelated issue. In my case the provisioner was embedded in an aws_instance. I found that instead of referencing the parent resource directly ie through
Seems to only work in provisioners:
Hope this helps someone.