-
Notifications
You must be signed in to change notification settings - Fork 10k
lang: stabilise ephemeral values experiment #35636
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
Conversation
Stabilise the ephemeral values experiment and ephemeralasnull experimental function.
89519b6
to
08f8708
Compare
08f8708
to
cfa1e2b
Compare
cfa1e2b
to
58c2d36
Compare
58c2d36
to
412e58d
Compare
As the final step in stabilising the ephemeral values experiment, we can remove the separate code path for handling input variables supplied via -var and -var-file during apply. The intent here is conveyed in the tests: when applying a saved plan, all ephemeral variables set in the plan (the "apply-time variables"), must be set, and no others. As per the TODO copied from the prototype, there is some more work to be done here in making the handling of undeclared variables during apply as sophisticated as that during plan, emitting helpful warnings (for example) when input variables are supplied unnecessarily via environment variables.
412e58d
to
8036e99
Compare
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.
LGTM, I just added one tiny change to formally conclude the experiment, which replaces the warning with an error, i.e. ensures there will be no configuration with experiments = [ephemeral_values]
anywhere anymore.
114851c
to
43b04e4
Compare
Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This should make it easier to test.
The first commit contains trivial changes along with refactoring the handling of
terraform.applying
andterraform.workspace
along the lines described in the deleted comment.The second commit was a little more involved than I'd hoped, simplifying the handling of apply time input vars. More work to do here as described in the commit message, but I hope this will make it easier to work on the feature.