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

feat: add new resource aws_ebs_snapshot_block_public_access #38641

Merged

Conversation

stefanfreitag
Copy link
Contributor

@stefanfreitag stefanfreitag commented Aug 1, 2024

Description

Add a new resource allowing to block the public sharing of EBS snapshots.

Relations

References

#34347 contains links to the AWS announcement and blog posts

Output from Acceptance Testing

make  testacc TESTS=TestAccEC2EBSSnapshotBlockPublicAccess_ PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2EBSSnapshotBlockPublicAccess_'  -timeout 360m
=== RUN   TestAccEC2EBSSnapshotBlockPublicAccess_basic
=== PAUSE TestAccEC2EBSSnapshotBlockPublicAccess_basic
=== CONT  TestAccEC2EBSSnapshotBlockPublicAccess_basic
--- PASS: TestAccEC2EBSSnapshotBlockPublicAccess_basic (20.76s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ec2        21.054s

Copy link

github-actions bot commented Aug 1, 2024

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/ec2ebs Issues and PRs that pertain to the ec2ebs service. needs-triage Waiting for first response or review from a maintainer. labels Aug 1, 2024
@stefanfreitag stefanfreitag marked this pull request as ready for review August 1, 2024 19:41
@stefanfreitag stefanfreitag requested a review from a team as a code owner August 1, 2024 19:41
@stefanfreitag
Copy link
Contributor Author

One check is failing, but not sure what needs to be fixed here.
I checked the raw logs and noticed on unrelated resources

2024-08-01T18:46:23.5187111Z   [✖] https://docs.aws.amazon.com/transfer/latest/userguide/API_SftpConnectorConfig.html → Status: 404
2024-08-01T18:46:23.5187125Z 
2024-08-01T18:46:23.5187731Z   ERROR: 1 dead links found in website/docs/r/transfer_connector.html.markdown !
2024-08-01T18:46:23.5188701Z   [✖] https://docs.aws.amazon.com/transfer/latest/userguide/API_SftpConnectorConfig.html → Status: 404

@justinretzolk justinretzolk added the new-resource Introduces a new resource. label Aug 1, 2024
@justinretzolk
Copy link
Member

Hey @stefanfreitag 👋 Thank you for taking the time to raise this! I think there was a docs outage related to Transfer this morning that seemed like it could have been related, so I queued the job to re-run.

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Aug 2, 2024
@ewbankkit ewbankkit self-assigned this Aug 2, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Aug 2, 2024
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccEC2EBSSnapshotBlockPublicAccess_' PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccEC2EBSSnapshotBlockPublicAccess_ -timeout 360m
=== RUN   TestAccEC2EBSSnapshotBlockPublicAccess_basic
=== PAUSE TestAccEC2EBSSnapshotBlockPublicAccess_basic
=== CONT  TestAccEC2EBSSnapshotBlockPublicAccess_basic
--- PASS: TestAccEC2EBSSnapshotBlockPublicAccess_basic (24.73s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	29.896s

@ewbankkit
Copy link
Contributor

@stefanfreitag Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit df55176 into hashicorp:main Aug 2, 2024
41 checks passed
@github-actions github-actions bot added this to the v5.62.0 milestone Aug 2, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Aug 9, 2024
Copy link

github-actions bot commented Aug 9, 2024

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

Copy link

github-actions bot commented Sep 9, 2024

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 Sep 9, 2024
@stefanfreitag stefanfreitag deleted the f-ebs_snapshot_block_public_access branch October 8, 2024 18:49
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. generators Relates to code generators. new-resource Introduces a new resource. service/ec2ebs Issues and PRs that pertain to the ec2ebs service. 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.

Block Public Sharing of Amazon EBS Snapshots
3 participants