-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remote execution on Terraform Cloud fail to apply #2794
Comments
WorkaroundCurrently there are two workarounds for this issue.
Proposed Fixes
|
I think the 2nd proposed fix is most likely the way we want to go. I caution against changing the default action depending on the use case. I feel giving enough documentation/prompt to the user and letting them make the choice is the best first step. We can always change the default action at a later time. |
Forgot to mention, upon seeing the error, users can manually apply the queued plan in Terraform Cloud UI, as the error message indicates.
However, they'll need to run |
At the risk of sounding naive since I do not run terraform cloud... Doesn't atlantis currently run terraform apply -auto-approve? Otherwise wouldn't everyone hit a prompt (and subsequent error) when attempting to apply? |
I believe it uses a saved plan - https://developer.hashicorp.com/terraform/cli/commands/apply#saved-plan-mode |
Yes the plan is saved. However if you apply a saved plan, i believe it will still prompt you to confirm unless you |
Just an idea: in such case Atlantis can call terraform apply instead of plan and simply after plan keep the apply unconfirmed. And during apply just confirm previous plan. And obviously discard plan if new plan is called/PR is closed. This would be the target behavior for me, although I understand not the simplest to implement.... |
Community Note
Overview of the Issue
When running remote apply on Terraform Cloud, an error is returned which blocks the apply.
Reproduction Steps
atlantis plan
automaticallyatlantis apply
in PR commentEnvironment details
If not already included, please provide the following:
atlantis.yaml
file:The text was updated successfully, but these errors were encountered: