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

s3:DeleteObject IAM permission on S3 backend #36175

Open
ericrichtert opened this issue Dec 8, 2024 · 1 comment
Open

s3:DeleteObject IAM permission on S3 backend #36175

ericrichtert opened this issue Dec 8, 2024 · 1 comment
Labels
backend/s3 documentation new new issue not yet triaged

Comments

@ericrichtert
Copy link

Terraform Version

Terraform 1.10.1

Affected Pages

https://developer.hashicorp.com/terraform/language/backend/s3#:~:text=Note%3A%20s3%3ADeleteObject%20is%20not%20needed%2C%20as%20Terraform%20will%20not%20delete%20the%20state%20storage.

What is the docs issue?

The s3:DeleteObject is needed when using the 'use_lockfile=true'. From the s3 accesslogs:

request_uri: "DELETE /terraform.tfstate.tflock?x-id=DeleteObject HTTP/1.1"

Proposal

No response

References

#35661

@ericrichtert ericrichtert added documentation new new issue not yet triaged labels Dec 8, 2024
@bschaatsbergen
Copy link
Member

bschaatsbergen commented Dec 9, 2024

Hi @ericrichtert,

Thank you for reporting this! The S3 backend is managed by the AWS Provider team at HashiCorp, and we’ve added this issue to their triage queue.

You are correct—when use_lockfile=true is set, the s3:DeleteObject permission is required for Terraform to delete the lock file (.tflock). We’ll update the documentation to clarify that the s3:DeleteObject permission is required in this case. Thanks again for bringing this to our attention!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend/s3 documentation new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants