Skip to content
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

Terraform exit code is 0 when state lock deletion fails #23017

Closed
64kramsystem opened this issue Oct 7, 2019 · 2 comments · Fixed by #25729
Closed

Terraform exit code is 0 when state lock deletion fails #23017

64kramsystem opened this issue Oct 7, 2019 · 2 comments · Fixed by #25729

Comments

@64kramsystem
Copy link
Contributor

Terraform Version

0.12.7

Expected Behavior

If the state lock deletion fails, Terraform should exit with an error code (e.g. 1).

Actual Behavior

If the state lock deletion fails, Terraform exits with code 0.

Steps to Reproduce

  • Set an S3-backed TF storage, with a dynamodb table
  • Revoke the dynamodb:DeleteItem permission from the AWS user that performs the TF operation(s)
  • Execute a plan operation
@mildwonkey
Copy link
Contributor

👋 This has been fixed, but just so y'all know the fix is targeting Terraform v0.14. Thanks!

@ghost
Copy link

ghost commented Oct 13, 2020

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.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants