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
0.12 apply output no longer displays changes performed #22074
Comments
Hi @eedwards-sk, We made this change because previously the output of However, we can see here that when you use With that said, as a compromise here we should change the behavior of
That way all the same information would be present in both cases, and Terraform would be more explicit that running |
Thanks for the response.
My use case is for production, where seeing the changes isn't just for debugging, it's also for historical record. I don't see why running a If
I'm fully aware of the risks of the command, which is why it's only used in highly-scoped projects that manage only a few select resources (and since configuration comes from source code, we review the changes there, not the changes that will happen once deployed). Things like creating a database go through a plan-approve-apply lifecycle. Updating the task definition for an ECS container, where the only change is the "image" field, does not require planning and approval. I can certainly refactor my tooling to instead run a |
Probably adding a CLI-Flag to output the plan would be good for this use-case. We also saw this behaviour change in our pipeline output and added the terraform plan back for now. Would love some -output-plan option for this. |
We've had numerous patch releases since this issue was created. Are we going to see this functionality added back anytime soon? |
Two more months passed, checking to see if we're getting movement on this yet? No milestones or projects have been assigned that I've seen. I continue to lack context during my apply phase. |
I ran into the same thing (also for ECS deploys) and am using the following until the functionality is available: terraform plan -detailed-exitcode -out tfplan
if [[ $? -eq 2 ]]; then
terraform apply tfplan
fi |
Hey guys, Not ideal but here is a hack :)
|
Hello, I have a use case in terraform Since I don't think this issue is specific to |
It seems that (at least by 1.4.0, but noticed in 1.3 as well) export TF_INPUT=false
export TF_IN_AUTOMATION=true
export TF_CLI_ARGS="-no-color" |
Terraform Version
Overview
Running a
terraform apply
with no plan file (implicit plan) no longer displays what was changed, making it impossible to audit changes in CI workflows withterraform apply -auto-approve
Example File
Expected Behavior
0.11.14:
actual resource changes are displayed underneath "Creating..." line
Actual Behavior
0.12.3
no resource changes are displayed underneath "Creating..." line
Steps to Reproduce
TF_IN_AUTOMATION=1 terraform apply -auto-approve
Additional Context
TF_IN_AUTOMATION=1
-auto-approve
References
The text was updated successfully, but these errors were encountered: