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
Add a atmos terraform apply-last-plan
command
#194
Comments
@Gowiem we have the flag already Run
|
Please add your new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Feature
Add a new terraform subcommand:
apply-last-plan
that will pick up the written*.planfile
for the given component + stack and will executeterraform apply <planfile name>.planfile <extra args>
.Use Case
A really common workflow that I followed when working with vanilla terraform was the following:
terraform plan -out run.plan
terraform apply run.plan
With atmos, this doesn't work. When you run a plan, it outputs a planfile, but when passing that planfile as an extra argument to
apply
, it causes the following error:That is due to the
-var-file
arg atmos passes obviously, which we would not pass if we implemented theapply-last-plan
subcommand. It also has the added benefit that the atmos user doesn't need to specify theplanfile
name in the command, which is duplicate information anyway.Alternatives Considered
N/A
Additional Context
I'll have someone from my team or myself work on this if there is interest to implement!
The text was updated successfully, but these errors were encountered: