-
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
New resource - aws_vpc_block_public_access_exclusion #40235
New resource - aws_vpc_block_public_access_exclusion #40235
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There are two failing checks at the moment on this PR. I am not sure how to avoid this failure as it is a warning for As for this failure regarding the same command runs fine on my machine. I wonder if it just needs to be re-run. Can someone take a look and let me know? |
…ccess_options' into HEAD # Conflicts: # internal/service/ec2/service_package_gen.go
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 TESTARGS='-run=TestAccVPCBlockPublicAccessExclusion_' PKG=ec2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 3 -run=TestAccVPCBlockPublicAccessExclusion_ -timeout 360m
2024/11/26 16:36:33 Initializing Terraform AWS Provider...
=== RUN TestAccVPCBlockPublicAccessExclusion_tags
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_null
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_null
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_EmptyMap
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_EmptyMap
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_AddOnUpdate
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_AddOnUpdate
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnCreate
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnCreate
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Add
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Add
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Replace
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Replace
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_providerOnly
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_providerOnly
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nonOverlapping
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nonOverlapping
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_overlapping
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_overlapping
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToProviderOnly
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToProviderOnly
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToResourceOnly
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToResourceOnly
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyResourceTag
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyResourceTag
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyProviderOnlyTag
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyProviderOnlyTag
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullOverlappingResourceTag
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullOverlappingResourceTag
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullNonOverlappingResourceTag
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullNonOverlappingResourceTag
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnCreate
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnCreate
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Add
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Add
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Replace
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Replace
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_DefaultTag
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_DefaultTag
=== RUN TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_ResourceTag
=== PAUSE TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_ResourceTag
=== RUN TestAccVPCBlockPublicAccessExclusion_basicVPC
=== PAUSE TestAccVPCBlockPublicAccessExclusion_basicVPC
=== RUN TestAccVPCBlockPublicAccessExclusion_basicSubnet
=== PAUSE TestAccVPCBlockPublicAccessExclusion_basicSubnet
=== RUN TestAccVPCBlockPublicAccessExclusion_disappears
=== PAUSE TestAccVPCBlockPublicAccessExclusion_disappears
=== RUN TestAccVPCBlockPublicAccessExclusion_update
=== PAUSE TestAccVPCBlockPublicAccessExclusion_update
=== CONT TestAccVPCBlockPublicAccessExclusion_tags
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyProviderOnlyTag
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_providerOnly
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyProviderOnlyTag (471.72s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnCreate
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags (510.87s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Replace
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_providerOnly (524.72s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Add
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnCreate (224.15s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToProviderOnly
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Replace (267.36s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyResourceTag
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Add (261.52s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToResourceOnly
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToProviderOnly (261.14s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_overlapping
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyResourceTag (368.64s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nonOverlapping
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToResourceOnly (390.20s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_DefaultTag
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_overlapping (459.94s)
=== CONT TestAccVPCBlockPublicAccessExclusion_update
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_DefaultTag (446.89s)
=== CONT TestAccVPCBlockPublicAccessExclusion_disappears
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nonOverlapping (498.95s)
=== CONT TestAccVPCBlockPublicAccessExclusion_basicSubnet
--- PASS: TestAccVPCBlockPublicAccessExclusion_update (455.83s)
=== CONT TestAccVPCBlockPublicAccessExclusion_basicVPC
--- PASS: TestAccVPCBlockPublicAccessExclusion_disappears (258.12s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_ResourceTag
--- PASS: TestAccVPCBlockPublicAccessExclusion_basicSubnet (236.38s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_null
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_null (187.40s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnCreate
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_ResourceTag (188.64s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Replace
--- PASS: TestAccVPCBlockPublicAccessExclusion_basicVPC (199.22s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Add
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Replace (273.34s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Add (272.14s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullOverlappingResourceTag
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnCreate (282.65s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_AddOnUpdate
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_AddOnUpdate (258.67s)
=== CONT TestAccVPCBlockPublicAccessExclusion_tags_EmptyMap
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullNonOverlappingResourceTag (268.08s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullOverlappingResourceTag (267.48s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyMap (249.96s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 2866.347s
% make testacc TESTARGS='-run=TestAccVPCBlockPublicAccessOptions_serial' PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=TestAccVPCBlockPublicAccessOptions_serial -timeout 360m
2024/11/26 16:12:34 Initializing Terraform AWS Provider...
=== RUN TestAccVPCBlockPublicAccessOptions_serial
=== PAUSE TestAccVPCBlockPublicAccessOptions_serial
=== CONT TestAccVPCBlockPublicAccessOptions_serial
=== RUN TestAccVPCBlockPublicAccessOptions_serial/basic
=== RUN TestAccVPCBlockPublicAccessOptions_serial/update
--- PASS: TestAccVPCBlockPublicAccessOptions_serial (1250.64s)
--- PASS: TestAccVPCBlockPublicAccessOptions_serial/basic (525.18s)
--- PASS: TestAccVPCBlockPublicAccessOptions_serial/update (725.45s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 1255.850s
…d (terraform_unused_declarations)'.
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 TESTARGS='-run=TestAccVPCBlockPublicAccessExclusion_' PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=TestAccVPCBlockPublicAccessExclusion_ -timeout 360m
2024/11/27 08:15:33 Initializing Terraform AWS Provider...
--- PASS: TestAccVPCBlockPublicAccessExclusion_disappears (516.59s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyMap (541.38s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_basicVPC (543.84s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyResourceTag (551.19s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_emptyProviderOnlyTag (551.29s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnCreate (551.77s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_basicSubnet (556.30s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_AddOnUpdate (561.00s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Replace (561.02s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToResourceOnly (562.16s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_updateToProviderOnly (562.64s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Replace (563.37s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_DefaultTag (570.21s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnUpdate_Add (577.13s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags (594.85s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_providerOnly (609.42s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_EmptyTag_OnCreate (756.44s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_update (782.89s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_overlapping (937.89s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_IgnoreTags_Overlap_ResourceTag (937.90s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullOverlappingResourceTag (461.00s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_null (500.44s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nullNonOverlappingResourceTag (470.77s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_ComputedTag_OnUpdate_Add (493.81s)
--- PASS: TestAccVPCBlockPublicAccessExclusion_tags_DefaultTags_nonOverlapping (693.15s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 1241.501s
@madhavvishnubhatta Thanks for the contribution 🎉 👏. |
Description
New resource aws_vpc_block_public_access_exclusion to support the feature https://aws.amazon.com/about-aws/whats-new/2024/11/block-public-access-amazon-virtual-private-cloud/
Relations
Along with #40233 these close #40200
References
https://aws.amazon.com/about-aws/whats-new/2024/11/block-public-access-amazon-virtual-private-cloud/
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_VpcBlockPublicAccessExclusion.html
Output from Acceptance Testing