-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Using aws_s3_bucket_object with kms_key_id causes "etag" issues #6698
Comments
Yep, I just experienced this |
This only happens on update. The first creation of the s3 object works fine. Looks like etag is being set in the statefile after creation regardless of kms. See:
|
I'm also having a problem with this. Current workaround is to taint the resource. |
Having the same problem. This only started happening when we upgraded to 0.7.2 from 0.6.x |
I am having the same problem after upgrading to 0.7.2 |
Hello friends – I just merged #9168, which adds an explicit conflict between |
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. |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
0.6.16
Affected Resource(s)
Terraform Configuration Files
resource "aws_s3_bucket_object" "foo" { content = "abc" key = "foo" bucket = "${aws_s3_bucket.bar.id}" kms_key_id = "${aws_kms_key.main.arn}" }
Expected Behavior
On successive applies in which the content changes, they should be applied correctly
Actual Behavior
terraform appears to attempt to use an internally stored etag, however the check which prevents use of both
etag
andkms_key_id
appears to fire and prevent the apply with the error messageaws_s3_bucket_object.foo: Unable to specify 'kms_key_id' and 'etag' together because 'etag' wouldn't equal the MD5 digest of the raw object data
Steps to Reproduce
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: