-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support to manage additional regions for account module (#106)
- Loading branch information
Showing
5 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,31 @@ | ||
locals { | ||
available_regions = [ | ||
"af-south-1", | ||
"ap-east-1", | ||
"ap-south-2", | ||
"ap-southeast-3", | ||
"ap-southeast-4", | ||
"ca-west-1", | ||
"eu-south-1", | ||
"eu-south-2", | ||
"eu-central-2", | ||
"me-south-1", | ||
"me-central-1", | ||
"il-central-1", | ||
] | ||
} | ||
|
||
################################################### | ||
# Regions | ||
################################################### | ||
|
||
# INFO: Not supported attributes | ||
# - `account_id` | ||
# INFO: Not supported idempotent operation | ||
# TODO: How to manage disabled region? | ||
resource "aws_account_region" "this" { | ||
for_each = var.additional_regions | ||
|
||
region_name = each.value | ||
enabled = true | ||
} |
This file contains 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