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

r/s3_bucket_acl: backport support of pre-2018 naming for buckets in us-east-1 #23679

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Mar 15, 2022

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #23676

Output from acceptance testing:

--- PASS: TestAccS3BucketAcl_disappears (23.25s)
--- PASS: TestAccS3BucketAcl_basic (35.16s)
--- PASS: TestAccS3BucketAcl_migrate_aclNoChange (58.03s)
--- PASS: TestAccS3BucketAcl_migrate_grantsNoChange (58.25s)
--- PASS: TestAccS3BucketAcl_grantToACL (58.32s)
--- PASS: TestAccS3BucketAcl_migrate_aclWithChange (58.69s)
--- PASS: TestAccS3BucketAcl_updateACL (58.96s)
--- PASS: TestAccS3BucketAcl_ACLToGrant (59.44s)
--- PASS: TestAccS3BucketAcl_migrate_grantsWithChange (61.21s)
--- PASS: TestAccS3BucketAcl_updateGrant (61.50s)

--- PASS: TestBucketACLParseResourceID (0.05s)
    --- PASS: TestBucketACLParseResourceID/empty_ID (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket_and_account_ID_format_with_slash_separator (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket,_account_ID,_and_ACL_format_with_slash_separators (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket,_account_ID,_and_ACL_format_with_mixed_separators (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket,_ACL,_and_account_ID_format (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot_and_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dots,_hyphen,_and_numbers (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot,_hyphen,_and_number_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot,_hyphen,_and_number_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket,_bucket_owner,_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket,_bucket_owner,_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot,_hyphen,_and_numbers,_bucket_owner,_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1) (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscores (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_and_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dots,_hyphen,_and_numbers (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_and_acl_that_has_underscores (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_hyphen,_and_number_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_hyphen,_and_number_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1),_bucket_owner,_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1),_bucket_owner,_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_hyphen,_and_numbers,_bucket_owner,_and_acl_that_has_hyphens (0.00s)
PASS

@anGie44 anGie44 changed the title r/s3_bucket_acl: support pre-2018 naming for buckets in us-east-1 r/s3_bucket_acl: support pre-2018 naming for buckets in us-east-1 Mar 15, 2022
@github-actions github-actions bot added service/s3 Issues and PRs that pertain to the s3 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. labels Mar 15, 2022
@anGie44 anGie44 added this to the v3.75.0 milestone Mar 15, 2022
@anGie44 anGie44 added the bug Addresses a defect in current functionality. label Mar 15, 2022
@anGie44 anGie44 changed the title r/s3_bucket_acl: support pre-2018 naming for buckets in us-east-1 r/s3_bucket_acl: backport support of pre-2018 naming for buckets in us-east-1 Mar 15, 2022
@anGie44 anGie44 added enhancement Requests to existing resources that expand the functionality or scope. and removed bug Addresses a defect in current functionality. labels Mar 15, 2022
@anGie44 anGie44 force-pushed the s3-bucket-acl-import-id-backport branch from ddc79ea to b8279e4 Compare March 15, 2022 01:29
@anGie44 anGie44 force-pushed the s3-bucket-acl-import-id-backport branch from b8279e4 to 052b573 Compare March 15, 2022 01:32
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Output from tests:

% make testacc TESTS=TestAccS3BucketAcl_ PKG=s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run='TestAccS3BucketAcl_'  -timeout 180m
--- PASS: TestAccS3BucketAcl_disappears (21.55s)
--- PASS: TestAccS3BucketAcl_basic (30.71s)
--- PASS: TestAccS3BucketAcl_updateACL (52.76s)
--- PASS: TestAccS3BucketAcl_migrate_aclWithChange (53.31s)
--- PASS: TestAccS3BucketAcl_migrate_aclNoChange (53.50s)
--- PASS: TestAccS3BucketAcl_migrate_grantsNoChange (54.15s)
--- PASS: TestAccS3BucketAcl_migrate_grantsWithChange (54.85s)
--- PASS: TestAccS3BucketAcl_ACLToGrant (54.88s)
--- PASS: TestAccS3BucketAcl_grantToACL (54.92s)
--- PASS: TestAccS3BucketAcl_updateGrant (57.85s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/s3	59.210s
% make testacc TESTS=TestBucketACLParseResourceID PKG=s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run='TestBucketACLParseResourceID'  -timeout 180m
--- PASS: TestBucketACLParseResourceID (0.02s)
    --- PASS: TestBucketACLParseResourceID/empty_ID (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket_and_account_ID_format_with_slash_separator (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket,_account_ID,_and_ACL_format_with_slash_separators (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket,_account_ID,_and_ACL_format_with_mixed_separators (0.00s)
    --- PASS: TestBucketACLParseResourceID/incorrect_bucket,_ACL,_and_account_ID_format (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot_and_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dots,_hyphen,_and_numbers (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot,_hyphen,_and_number_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot,_hyphen,_and_number_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket,_bucket_owner,_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket,_bucket_owner,_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_that_has_dot,_hyphen,_and_numbers,_bucket_owner,_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1) (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscores (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_and_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dots,_hyphen,_and_numbers (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_and_acl_that_has_underscores (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_hyphen,_and_number_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_hyphen,_and_number_and_bucket_owner (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1),_bucket_owner,_and_acl (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1),_bucket_owner,_and_acl_that_has_hyphens (0.00s)
    --- PASS: TestBucketACLParseResourceID/valid_ID_with_bucket_(pre-2018,_us-east-1)_that_has_underscore,_dot,_hyphen,_and_numbers,_bucket_owner,_and_acl_that_has_hyphens (0.00s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/s3	1.203s

@YakDriver YakDriver self-assigned this Mar 15, 2022
@anGie44 anGie44 merged commit ad34de8 into release/3.x Mar 15, 2022
@anGie44 anGie44 deleted the s3-bucket-acl-import-id-backport branch March 15, 2022 16:30
github-actions bot pushed a commit that referenced this pull request Mar 15, 2022
@github-actions
Copy link

This functionality has been released in v3.75.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!

@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants