-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Mechanism for updating output variables #17280
Comments
Hi @ezyang, This was brought up recently for automated workflows, where the absence of a plan meant there were no changes, and the new output could not be applied. If you're working from the CLI, this should work by executing |
Hi @ezyang, Following on from what @jbardin said here, the proposal in #15419 is relevant to what you requested here, and we're planning to look more closely at that (or, more accurately, on the general area of the CLI workflow) after we finish our current work on configuration language improvements. In the mean time, |
Awesome, I'll try (The usual reason one can't run |
Thanks for following up, @ezyang. I think what you're asking for here will end up covered by a combination of #15419 and #17034, which are both related ideas about integrating this sort of action into the primary Those are both still just design sketches and so details may change before final release, but since those two issues already cover this use-case I'm going to close this just to consolidate the discussion to those proposals. Thanks for sharing this use-case, and I hope |
Just for the record: I use s3 as remote storage backend and new outputs are not uploaded unless you strictly apply a plan that imply changes. I think It would be nice if we could force this somehow from terraform refresh! |
I think I ran into similar issues but might be even worse: after terraform refresh all output are gone.
|
In my case I had to update an output which was now a concat of two variables. What worked for me: |
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
Terraform Configuration Files
Expected Behavior
Suppose I make a modification to
output "jenkins-worker-c5-xlarge-dns"
, but for some reason or another I am unable to run a globalterraform apply
. I'd like to be able to sayterraform apply -target jenkins-worker-c5-xlarge-dns
to update the output variable.Actual Behavior
I have to make some edit to a dependency of the output and apply before the change is picked up.
Steps to Reproduce
terraform apply
terraform apply -target ???
The text was updated successfully, but these errors were encountered: