-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_s3_bucket_object: Add source_hash attribute #11522
r/aws_s3_bucket_object: Add source_hash attribute #11522
Conversation
@jacobisaliveandwell awesome that you started implementing this! I also opened an issue /suggestion about this a while ago: #6668 |
@frittentheke all credit goes to @theophilechevalier, I just came here to complain. I want this feature and don't see what the hold up is. @YakDriver Any hope? |
Seems that #9575 is related |
This depends on #14900 to be there otherwise diffs will not ensure a new version_id is created. |
@YakDriver @bflad Any chance you could look at this now? |
Looks like there hasn't been any movement on this since November 23rd and it's definitely still an issue. What's the status? Is this going to be merged? |
I second this question. |
@YakDriver @bflad you did review a few S3 related PRs lately. Is there any chance you could look at this one? |
Allows one to store a hash in state to trigger resource update.
8b38606
to
26271f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🎉
Output from acceptance tests (us-west-2
):
--- PASS: TestAccAWSS3BucketObject_noNameNoKey (6.04s)
--- PASS: TestAccAWSS3BucketObject_sse (38.77s)
--- SKIP: TestAccAWSS3BucketObject_nonVersioned (0.00s)
--- PASS: TestAccAWSS3BucketObject_objectBucketKeyEnabled (44.98s)
--- PASS: TestAccAWSS3BucketObject_kms (48.06s)
--- PASS: TestAccAWSS3BucketObject_bucketBucketKeyEnabled (49.93s)
--- PASS: TestAccAWSS3BucketObject_defaultBucketSSE (50.05s)
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (38.33s)
--- PASS: TestAccAWSS3BucketObject_objectLockLegalHoldStartWithOn (84.52s)
--- PASS: TestAccAWSS3BucketObject_sourceHashTrigger (87.43s)
--- PASS: TestAccAWSS3BucketObject_updates (88.05s)
--- PASS: TestAccAWSS3BucketObject_updateSameFile (82.06s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (88.51s)
--- PASS: TestAccAWSS3BucketObject_content (40.56s)
--- PASS: TestAccAWSS3BucketObject_contentBase64 (38.80s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioningViaAccessPoint (89.26s)
--- PASS: TestAccAWSS3BucketObject_ignoreTags (89.54s)
--- PASS: TestAccAWSS3BucketObject_metadata (101.47s)
--- PASS: TestAccAWSS3BucketObject_etagEncryption (32.49s)
--- PASS: TestAccAWSS3BucketObject_objectLockLegalHoldStartWithNone (110.24s)
--- PASS: TestAccAWSS3BucketObject_source (28.23s)
--- PASS: TestAccAWSS3BucketObject_acl (113.16s)
--- PASS: TestAccAWSS3BucketObject_empty (27.02s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes (133.42s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSingleSlash (133.54s)
--- PASS: TestAccAWSS3BucketObject_tagsMultipleSlashes (133.66s)
--- PASS: TestAccAWSS3BucketObject_tags (133.67s)
--- PASS: TestAccAWSS3BucketObject_objectLockRetentionStartWithNone (84.53s)
--- PASS: TestAccAWSS3BucketObject_objectLockRetentionStartWithSet (101.83s)
--- PASS: TestAccAWSS3BucketObject_storageClass (149.09s)
Output from acceptance tests (GovCloud):
--- SKIP: TestAccAWSS3BucketObject_nonVersioned (1.15s)
--- PASS: TestAccAWSS3BucketObject_noNameNoKey (5.10s)
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (41.39s)
--- PASS: TestAccAWSS3BucketObject_sse (41.13s)
--- PASS: TestAccAWSS3BucketObject_contentBase64 (42.46s)
--- PASS: TestAccAWSS3BucketObject_etagEncryption (42.65s)
--- PASS: TestAccAWSS3BucketObject_objectBucketKeyEnabled (43.13s)
--- PASS: TestAccAWSS3BucketObject_bucketBucketKeyEnabled (48.25s)
--- PASS: TestAccAWSS3BucketObject_defaultBucketSSE (48.36s)
--- PASS: TestAccAWSS3BucketObject_objectLockLegalHoldStartWithOn (76.94s)
--- PASS: TestAccAWSS3BucketObject_sourceHashTrigger (83.29s)
--- PASS: TestAccAWSS3BucketObject_source (45.08s)
--- PASS: TestAccAWSS3BucketObject_content (45.40s)
--- PASS: TestAccAWSS3BucketObject_empty (45.41s)
--- PASS: TestAccAWSS3BucketObject_kms (40.88s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioningViaAccessPoint (84.45s)
--- PASS: TestAccAWSS3BucketObject_ignoreTags (89.87s)
--- PASS: TestAccAWSS3BucketObject_metadata (116.27s)
--- PASS: TestAccAWSS3BucketObject_objectLockLegalHoldStartWithNone (117.07s)
--- PASS: TestAccAWSS3BucketObject_objectLockRetentionStartWithNone (117.26s)
--- PASS: TestAccAWSS3BucketObject_updateSameFile (74.28s)
--- PASS: TestAccAWSS3BucketObject_updates (71.20s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSingleSlash (135.52s)
--- PASS: TestAccAWSS3BucketObject_objectLockRetentionStartWithSet (142.54s)
--- PASS: TestAccAWSS3BucketObject_tags (143.42s)
--- PASS: TestAccAWSS3BucketObject_tagsMultipleSlashes (143.50s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingMultipleSlashes (143.60s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (67.37s)
--- PASS: TestAccAWSS3BucketObject_acl (102.53s)
--- PASS: TestAccAWSS3BucketObject_storageClass (165.06s)
This functionality has been released in v3.50.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Add
source_hash
toresource_aws_s3_bucket_object
.Allows one to trigger resource update based on local changes instead of
etag
. Especially useful whenetag
cannot be used (e.g. withkms_key_id
orserver_side_encryption = "aws:kms"
).Community Note
Closes #6668
Relates #14900
Relates #9575
Relates #5033
Release note for CHANGELOG:
Output from acceptance testing: