-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Erroneous "Resource ... does not have attribute" error; goes away on second apply #15885
Comments
Hi @jbrwon2006! Sorry this isn't working properly. I think the problem here is not actually related to the splat expression; what you did here should've worked. This looks similar to hashicorp/terraform-provider-template#2, which is unfortunately something we've never been able to get to the bottom of despite it being encountered a few times now. 😖 I'll see if I can reproduce with your config here. Thanks for this self-contained example config! |
I was indeed able to reproduce this. Thanks! I noticed while running it that this is using the deprecated resource form of However, it's still a bug, and one that quite possibly affects other resources too. Hopefully with this great repro case we can get to the bottom of this, so thanks again! |
Hey folks! @mmcquillan and I just reproduced this error in a very similar scenario with a blue/green set of |
I think I'm running into this issue now, specifically when a resource goes from Reproduction code.
Reproduction Steps
Step 2:
Step 3:
|
Hi @robrankin, 17241 solved the issue on a full destroy, but it's going to take a little more work to fix when resources are being replaced. Issue #17425 describes the situation a little more precisely. |
@jbardin Thanks for the response, appreciate that. Will watch the other issue keenly. |
v 0.11.7 I have an expression
I make
P.S. adding
doesn't help |
Hi folks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
v0.10.2
Terraform Configuration Files
Steps to Reproduce
I tried to use a conditional, but that does not work since both branches need to be evaluated. I am assuming this is a bug since re-run works.
The text was updated successfully, but these errors were encountered: