-
Notifications
You must be signed in to change notification settings - Fork 10.2k
add extra origin information for deprecation diagnostics #38052
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
base: deprecations-in-variables-and-outputs
Are you sure you want to change the base?
add extra origin information for deprecation diagnostics #38052
Conversation
6e72b27 to
a12e649
Compare
fbfd15f to
ca88f6f
Compare
jbardin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something we need to be careful of is that UnmarkDeep is a very expensive operation, so it needs to be kept out of any hot paths in Terraform. I'm not seeing anything concerning yet after removing the recursive validation in count/for_each, but I can take a closer look on the other PRs too.
e7bf756 to
1becc84
Compare
1becc84 to
1f5c492
Compare
daa048d to
710afaa
Compare
a52acd5 to
63e51e0
Compare
710afaa to
fed3ea9
Compare
63e51e0 to
de0d028
Compare
fed3ea9 to
a9cb1c9
Compare
4f969c4 to
3f705da
Compare
a9cb1c9 to
f877341
Compare
3f705da to
5f40540
Compare
f877341 to
d79bf08
Compare
We want to be able to give better information if e.g. the entire module is stored in a local and the deprecated value is only later used. Where the diag is emitted we might only see the local and not the true origin of the deprecation A string identifying the source of the deprecation should help
…rtain locations Mainly terminal locations for the value where they are used, such as the config of a resource, for_each, outputs. We don't want to evaluate the deprecation deeply when it comes to values where the value is not yet used, e.g. locals This is because if e.g. a deeply nested value is deprecated it should still be ok for the entire object to be in a local whereas the same object should give a warning in e.g. an output
5f40540 to
f2387a8
Compare
Based on #38001
Attaches and displays extra information on diagnostics about the origin of deprecated values.
Fixes #
Target Release
1.15.x
Rollback Plan
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
CHANGELOG entry