-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: invalid new value for .tags_all when using aws_route53_zone
resource
#30971
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @kquinsland 👋 Thank you for taking the time to raise this! I believe this should be fixed in version 5 of the provider by the changes that are discussed in #29842. |
Lovely to hear this is in the realm of "may be obsoleted with next major release". I'll subscribe to that thread and have made a note in our own TF to come back / update (hopefully close!) this thread once 5.0 drops. |
Hey @kquinsland 👋 I wanted to check in here and see if v5 wound up helping you with your tagging issue, and if so, if you were comfortable with closing out this issue. Hope you've been well! |
Since we haven't heard back, I'm going to close this issue. If you're still having trouble, please feel free to open a new issue, referencing this one for context as needed. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
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. |
Terraform Core Version
1.4.5/linux_amd64
AWS Provider Version
4.64.0
Affected Resource(s)
I am encountering this issue with the
aws_route53_zone
resource but I suspect that it's this particular pattern of code and not any specific resource.Expected Behavior
I would expect that the
tf apply
run completes w/o issue.Actual Behavior
Here's what a plan looks like:
This seems to make sense, right? We know that
"corp/zoneVisibility" = "private"
is correct fortest-root-domain.aws_route53_zone.this
and since thetest-sub-domain
module uses adata{}
block to look up the zone ID, we can't know the value forcorp/zoneVisibility
in the sub module until after the root module has finished creating the zone.The output
+ tags = (known after apply)
makes sense.At no point is either the
For
tag or thecorp/zoneVisibility
tag set in thetags_all
... and yet, the error / panic that I get implies that these keys are being set intags_all
and not in the regular "per-resouce"tags{}
block.Relevant Error/Panic Output Snippet
Terraform Configuration Files
I have a
main.tf
that looks like this:And
aws-simple-r53-root-domain/main.tf
looks like:And the
aws-simple-r53-sub-domain/main.tf
looks similar:The issue I am having is around the tags applied.
The idea is that the tag with key
corp/zoneVisibility
can only bepublic
orprivate
and - at least at apply time - we have enough information to determine which value should be used so we do it automatically for the user.Steps to Reproduce
Using the two modules above and the
main.tf
, just runtf init; tf apply
.Debug Output
No response
Panic Output
No response
Important Factoids
If I re-run
tf apply
after the failure, the output no longer features the(known after apply)
and has the correctprivate
valueNote that the two tags
For
andcorp/zoneVisibility
are not mentioned in thetags_all
.References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: