-
Notifications
You must be signed in to change notification settings - Fork 9.8k
r/aws_ec2_image_block_public_access: Add region argument
#45023
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
Merged
ewbankkit
merged 19 commits into
main
from
f-aws_ec2_image_block_public_access-add-region
Nov 13, 2025
+244
−32
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c6c88ef
r/aws_ec2_image_block_public_access: Remove '@Region(global=true)' --…
ewbankkit f7875dd
Run 'make gen'.
ewbankkit 62d3ce0
Documentation.
ewbankkit 7efb50f
Add ability to inject SDKv2 IdentityUpgraders.
ewbankkit 00e9e33
r/aws_ec2_image_block_public_access: Dummy IdentityUpgrader.
ewbankkit b11daf8
Run 'make gen'.
ewbankkit 79898ba
'identityUpgraders' -> 'sdkV2IdentityUpgraders'.
ewbankkit e1187c2
r/aws_ec2_image_block_public_access: Add Region to configuration temp…
ewbankkit 81a06b4
r/aws_ec2_image_block_public_access: Ensure 'region' is documented.
ewbankkit d57d136
TODOs that get the tests passing.
ewbankkit 5320d8a
Acceptance test output:
ewbankkit fa00b53
Merge branch 'main' into f-aws_ec2_image_block_public_access-add-region
ewbankkit 5290eba
r/aws_ec2_image_block_public_access: Don't generate identity tests.
ewbankkit 1b609e9
Correct CHANGELOG entry file name.
ewbankkit 987ffe4
Replace 'inttypes.VersionedIdentity' with additional OptFuncs.
ewbankkit 86a1f63
Run 'make gen'.
ewbankkit fc71df5
r/aws_ec2_image_block_public_access: Call identity upgrade tests.
ewbankkit bfa450f
Fix 'testAccEC2ImageBlockPublicAccess_Identity_Upgrade_NoRefresh'.
ewbankkit 805a5d6
No need to import 'helper/schema'.
ewbankkit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ```release-note:bug | ||
| resource/aws_ec2_image_block_public_access: Add `region` argument | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
internal/service/ec2/testdata/ImageBlockPublicAccess/basic_v6.19.0/main_gen.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| resource "aws_ec2_image_block_public_access" "test" { | ||
| state = "block-new-sharing" | ||
| } | ||
|
|
||
| terraform { | ||
| required_providers { | ||
| aws = { | ||
| source = "hashicorp/aws" | ||
| version = "6.19.0" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| provider "aws" {} |
15 changes: 15 additions & 0 deletions
15
internal/service/ec2/testdata/ImageBlockPublicAccess/region_override/main_gen.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| resource "aws_ec2_image_block_public_access" "test" { | ||
| region = var.region | ||
|
|
||
| state = "block-new-sharing" | ||
| } | ||
|
|
||
|
|
||
| variable "region" { | ||
| description = "Region to deploy resource in" | ||
| type = string | ||
| nullable = false | ||
| } |
1 change: 1 addition & 0 deletions
1
internal/service/ec2/testdata/tmpl/ec2_image_block_public_access_basic.gtpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| resource "aws_ec2_image_block_public_access" "test" { | ||
| {{- template "region" }} | ||
| state = "block-new-sharing" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.