-
Notifications
You must be signed in to change notification settings - Fork 85
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
Imports persisted to state on plan_only runs #149
Comments
I guess that this behaviour was inadvertently added as a consequence of #146 |
That's not how Terraform works unfortunately. Running |
My problem isn't that the state file is updated; as you say, that makes sense. The problem is that the updated state file ends up being pushed to S3. |
Again, that's something Terraform does automatically. When you have a The only workaround I can think of is to add a task to download the existing statefile from S3 then configure the |
When
plan_only
is used, the state is updated with any resources that were imported. This can lead of inconsistencies if the resource definitions change before the plan is applied.In our use case, we run using
plan_only
during a Pull Request and may make changes before merging/applying. It would be useful to prevent the imports from being persisted until after the apply.The text was updated successfully, but these errors were encountered: