Skip to content

Conversation

@ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Nov 10, 2025

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Description

Adds the missing region argument.
Requires resource identity schema migration.

Relations

Closes #44249.

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccEC2ImageBlockPublicAccess_serial' PKG=ec2 
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_ec2_image_block_public_access-add-region 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccEC2ImageBlockPublicAccess_serial -timeout 360m -vet=off
2025/11/12 13:26:02 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/12 13:26:02 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccEC2ImageBlockPublicAccess_serial
=== PAUSE TestAccEC2ImageBlockPublicAccess_serial
=== CONT  TestAccEC2ImageBlockPublicAccess_serial
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/basic
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/basic
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResource
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResourceNoRefresh
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/RegionOverride
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/Upgrade
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/UpgradeNoRefresh
--- PASS: TestAccEC2ImageBlockPublicAccess_serial (749.61s)
    --- PASS: TestAccEC2ImageBlockPublicAccess_serial/basic (37.65s)
    --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity (711.96s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/basic (19.59s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResource (142.38s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResourceNoRefresh (152.45s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/RegionOverride (19.22s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/Upgrade (207.20s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/UpgradeNoRefresh (171.11s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	755.382s
% make testacc TESTARGS='-run=TestAccSQSQueue_Identity_' PKG=sqs ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_ec2_image_block_public_access-add-region 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/sqs/... -v -count 1 -parallel 4  -run=TestAccSQSQueue_Identity_ -timeout 360m -vet=off
2025/11/12 12:07:31 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/12 12:07:31 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccSQSQueue_Identity_Basic
=== PAUSE TestAccSQSQueue_Identity_Basic
=== RUN   TestAccSQSQueue_Identity_RegionOverride
=== PAUSE TestAccSQSQueue_Identity_RegionOverride
=== RUN   TestAccSQSQueue_Identity_ExistingResource
=== PAUSE TestAccSQSQueue_Identity_ExistingResource
=== RUN   TestAccSQSQueue_Identity_ExistingResource_NoRefresh_NoChange
=== PAUSE TestAccSQSQueue_Identity_ExistingResource_NoRefresh_NoChange
=== RUN   TestAccSQSQueue_Identity_Upgrade
=== PAUSE TestAccSQSQueue_Identity_Upgrade
=== RUN   TestAccSQSQueue_Identity_Upgrade_NoRefresh
=== PAUSE TestAccSQSQueue_Identity_Upgrade_NoRefresh
=== CONT  TestAccSQSQueue_Identity_Basic
=== CONT  TestAccSQSQueue_Identity_ExistingResource_NoRefresh_NoChange
=== CONT  TestAccSQSQueue_Identity_Upgrade_NoRefresh
=== CONT  TestAccSQSQueue_Identity_RegionOverride
--- PASS: TestAccSQSQueue_Identity_Basic (55.72s)
=== CONT  TestAccSQSQueue_Identity_Upgrade
--- PASS: TestAccSQSQueue_Identity_RegionOverride (60.29s)
=== CONT  TestAccSQSQueue_Identity_ExistingResource
--- PASS: TestAccSQSQueue_Identity_ExistingResource_NoRefresh_NoChange (96.27s)
--- PASS: TestAccSQSQueue_Identity_Upgrade_NoRefresh (108.78s)
--- PASS: TestAccSQSQueue_Identity_Upgrade (85.31s)
--- PASS: TestAccSQSQueue_Identity_ExistingResource (93.19s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/sqs	159.397s

% make testacc TESTARGS='-run=TestAccEC2ImageBlockPublicAccess_serial' PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_ec2_image_block_public_access-add-region 🌿...
TF_ACC=1 go1.24.8 test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccEC2ImageBlockPublicAccess_serial -timeout 360m -vet=off
2025/11/05 16:01:04 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/05 16:01:04 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccEC2ImageBlockPublicAccess_serial
=== PAUSE TestAccEC2ImageBlockPublicAccess_serial
=== CONT  TestAccEC2ImageBlockPublicAccess_serial
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/basic
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResource
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResourceNoRefresh
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/Identity/RegionOverride
=== RUN   TestAccEC2ImageBlockPublicAccess_serial/basic
--- PASS: TestAccEC2ImageBlockPublicAccess_serial (348.14s)
    --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity (310.41s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/basic (20.60s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResource (208.82s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResourceNoRefresh (61.67s)
        --- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/RegionOverride (19.32s)
    --- PASS: TestAccEC2ImageBlockPublicAccess_serial/basic (37.73s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	354.219s
@github-actions
Copy link
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • 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 prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/ec2 Issues and PRs that pertain to the ec2 service. service/sqs Issues and PRs that pertain to the sqs service. provider Pertains to the provider itself, rather than any interaction with AWS. generators Relates to code generators. size/L Managed by automation to categorize the size of a PR. labels Nov 10, 2025
@ewbankkit ewbankkit added the resource-identity Pertains to resource identity. label Nov 12, 2025
@ewbankkit ewbankkit marked this pull request as ready for review November 12, 2025 19:02
@ewbankkit ewbankkit requested a review from a team as a code owner November 12, 2025 19:02
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

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

Some nits, but otherwise looks good.

--- PASS: TestAccEC2ImageBlockPublicAccess_serial (358.77s)
--- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity (358.77s)
--- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/basic (26.66s)
--- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResource (98.08s)
--- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/ExistingResourceNoRefresh (68.07s)
--- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/RegionOverride (23.91s)
--- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/Upgrade (66.26s)
--- PASS: TestAccEC2ImageBlockPublicAccess_serial/Identity/UpgradeNoRefresh (75.79s)

@ewbankkit ewbankkit merged commit 102c77c into main Nov 13, 2025
68 checks passed
@ewbankkit ewbankkit deleted the f-aws_ec2_image_block_public_access-add-region branch November 13, 2025 13:36
@github-actions
Copy link
Contributor

Warning

This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v6.21.0 milestone Nov 13, 2025
terraform-aws-provider bot pushed a commit that referenced this pull request Nov 13, 2025
ewbankkit added a commit that referenced this pull request Nov 13, 2025
ewbankkit added a commit that referenced this pull request Nov 13, 2025
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Nov 13, 2025
@github-actions
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. generators Relates to code generators. provider Pertains to the provider itself, rather than any interaction with AWS. resource-identity Pertains to resource identity. service/ec2 Issues and PRs that pertain to the ec2 service. service/sqs Issues and PRs that pertain to the sqs service. size/L 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.

Missing region argument for aws_ec2_image_block_public_access resource

2 participants