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

New Resource: aws_s3_account_public_access_block #6851

Merged
merged 1 commit into from
Dec 19, 2018

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Dec 14, 2018

Reference: #6489

This implements Public Access Block configuration within the new S3 Control API, which is separate from the existing S3 API. The S3 Control API features the same eventual consistency complexity as the existing S3 API across all operations. The resource and acceptance testing try handling the eventual consistency as best as possible up to a minute.

The resource is named aws_s3_account_public_access_block instead of aws_s3control_public_access_block to be more operator friendly with respect to it working at the account level.

Changes:

  • provider: Implement S3 Control custom endpoint, session, and connection
  • New Resource: aws_s3_account_public_access_block

Output from acceptance testing (explicitly serialized for TeamCity):

--- PASS: TestAccAWSS3Account (169.55s)
    --- PASS: TestAccAWSS3Account/PublicAccessBlock (169.55s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/basic (13.01s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/disappears (7.95s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/AccountId (11.47s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/BlockPublicAcls (25.04s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/BlockPublicPolicy (25.33s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/IgnorePublicAcls (25.33s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/RestrictPublicBuckets (26.40s)

@bflad bflad added new-resource Introduces a new resource. service/s3control Issues and PRs that pertain to the s3control service. labels Dec 14, 2018
@bflad bflad requested a review from a team December 14, 2018 05:28
@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. dependencies Used to indicate dependency changes. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/s3 Issues and PRs that pertain to the s3 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Dec 14, 2018
This implements Public Access Block configuration within the new S3 Control API, which is separate from the existing S3 API. The S3 Control API features the same eventual consistency complexity as the existing S3 API across all operations. The resource and acceptance testing try handling the eventual consistency as best as possible up to a minute.

The resource is named `aws_s3_account_public_access_block` instead of `aws_s3control_public_access_block` to be more operator friendly with respect to it working at the account level.

Changes:

* provider: Implement S3 Control custom endpoint, session, and connection
* New Resource: aws_s3_account_public_access_block

Output from acceptance testing:

```
--- PASS: TestAccAWSS3Account (169.55s)
    --- PASS: TestAccAWSS3Account/PublicAccessBlock (169.55s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/basic (13.01s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/disappears (7.95s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/AccountId (11.47s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/BlockPublicAcls (25.04s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/BlockPublicPolicy (25.33s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/IgnorePublicAcls (25.33s)
        --- PASS: TestAccAWSS3Account/PublicAccessBlock/RestrictPublicBuckets (26.40s)
```
@bflad bflad force-pushed the f-aws_s3_account_public_block_policy branch from 12d1841 to 93c112a Compare December 14, 2018 14:31
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. and removed size/XXL Managed by automation to categorize the size of a PR. labels Dec 14, 2018
@bflad bflad removed the dependencies Used to indicate dependency changes. label Dec 14, 2018
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

LGTM

@bflad bflad added this to the v1.53.0 milestone Dec 19, 2018
@bflad bflad merged commit 5e80a8a into master Dec 19, 2018
@bflad bflad deleted the f-aws_s3_account_public_block_policy branch December 19, 2018 16:27
bflad added a commit that referenced this pull request Dec 19, 2018
@bflad
Copy link
Contributor Author

bflad commented Dec 20, 2018

This has been released in version 1.53.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 1, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/s3control Issues and PRs that pertain to the s3control service. service/s3 Issues and PRs that pertain to the s3 service. size/XL 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