-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
AWS S3 Object: Support seamless upgrade from provider v4.x #33138
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
LGTM 🚀
% make testacc PKG=s3 TESTS=TestAccS3Object_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run='TestAccS3Object_' -timeout 180m
--- PASS: TestAccS3Object_noNameNoKey (7.94s)
=== CONT TestAccS3Object_defaultBucketSSE
--- PASS: TestAccS3Object_withContentCharacteristics (58.38s)
=== CONT TestAccS3Object_ignoreTags
--- PASS: TestAccS3Object_bucketBucketKeyEnabled (58.42s)
=== CONT TestAccS3Object_etagEncryption
--- PASS: TestAccS3Object_contentBase64 (59.65s)
=== CONT TestAccS3Object_updatesWithVersioning
--- PASS: TestAccS3Object_source (59.80s)
=== CONT TestAccS3Object_kms
--- PASS: TestAccS3Object_objectBucketKeyEnabled (60.45s)
=== CONT TestAccS3Object_updatesWithVersioningViaAccessPoint
--- PASS: TestAccS3Object_defaultBucketSSE (53.53s)
=== CONT TestAccS3Object_storageClass
--- PASS: TestAccS3Object_content (61.82s)
=== CONT TestAccS3Object_updateSameFile
--- PASS: TestAccS3Object_empty (65.62s)
=== CONT TestAccS3Object_metadata
--- PASS: TestAccS3Object_sse (67.12s)
=== CONT TestAccS3Object_updates
--- PASS: TestAccS3Object_upgradeFromV4 (75.81s)
=== CONT TestAccS3Object_nonVersioned
acctest.go:1603: skipping test; environment variable TF_ACC_ASSUME_ROLE_ARN must be set. Usage: Amazon Resource Name (ARN) of existing IAM Role to assume for testing restricted permissions
--- SKIP: TestAccS3Object_nonVersioned (0.00s)
--- PASS: TestAccS3Object_sourceHashTrigger (108.55s)
--- PASS: TestAccS3Object_objectLockLegalHoldStartWithOn (109.54s)
--- PASS: TestAccS3Object_etagEncryption (56.26s)
--- PASS: TestAccS3Object_kms (57.96s)
--- PASS: TestAccS3Object_objectLockLegalHoldStartWithNone (144.20s)
--- PASS: TestAccS3Object_objectLockRetentionStartWithNone (146.69s)
--- PASS: TestAccS3Object_ignoreTags (91.05s)
--- PASS: TestAccS3Object_updatesWithVersioningViaAccessPoint (90.75s)
--- PASS: TestAccS3Object_updateSameFile (90.39s)
--- PASS: TestAccS3Object_updatesWithVersioning (93.80s)
--- PASS: TestAccS3Object_acl (153.77s)
--- PASS: TestAccS3Object_updates (89.02s)
--- PASS: TestAccS3Object_objectLockRetentionStartWithSet (166.91s)
--- PASS: TestAccS3Object_tagsMultipleSlashes (168.00s)
--- PASS: TestAccS3Object_tagsLeadingMultipleSlashes (170.52s)
--- PASS: TestAccS3Object_metadata (105.22s)
--- PASS: TestAccS3Object_tags (173.32s)
--- PASS: TestAccS3Object_tagsLeadingSingleSlash (173.34s)
--- PASS: TestAccS3Object_storageClass (139.83s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 204.459s
% make testacc PKG=s3 TESTS=TestAccS3ObjectCopy_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run='TestAccS3ObjectCopy_' -timeout 180m
--- PASS: TestAccS3ObjectCopy_BucketKeyEnabled_bucket (23.75s)
--- PASS: TestAccS3ObjectCopy_BucketKeyEnabled_object (23.76s)
--- PASS: TestAccS3ObjectCopy_basic (23.97s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 26.936s
This functionality has been released in v5.14.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. |
Description
Marks
acl
as Computed for theaws_s3_object
andaws_s3_object_copy
resources.This prevents diffs when migrating configurations with no configured
acl
value from Terraform AWS Provider v4.67.0 (and earlier).The previous default value of
private
was removed at v5.0.0.Relations
Closes #31633.
Relates #27197.
Output from Acceptance Testing