-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple AWS regions in Terragrunt
Some of our Terraform modules deploy resources to different regions simultaneously. This is done by defining multiple `provider` blocks for AWS with different regions and different aliases, which can then be references in the Terraform resources. With Terragrunt, we are dynamically creating the `provider` block and overwriting any additional providers that are defined in Terraform files. Our script has therefore been extended to accept multiple regions in the `account.json` file and expand them to the same structure that we were using before with Terraform.
- Loading branch information
Showing
9 changed files
with
59 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"aws": { | ||
"profile": "bors-prod", | ||
"region": "us-east-2" | ||
"regions": [ | ||
{ | ||
"region": "us-east-2" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"aws": { | ||
"profile": "bors-staging", | ||
"region": "us-east-2" | ||
"regions": [ | ||
{ | ||
"region": "us-east-2" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"aws": { | ||
"profile": "crates-io-prod", | ||
"region": "us-west-1" | ||
"regions": [ | ||
{ | ||
"region": "us-west-1" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
{ | ||
"aws": { | ||
"profile": "crates-io-staging", | ||
"region": "us-west-1" | ||
"regions": [ | ||
{ | ||
"region": "us-west-1" | ||
}, | ||
{ | ||
"region": "us-east-1", | ||
"alias": "us-east-1" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"aws": { | ||
"profile": "dev-desktops-prod", | ||
"region": "us-east-1" | ||
"regions": [ | ||
{ | ||
"region": "us-east-1" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"aws": { | ||
"profile": null, | ||
"region": "us-west-1" | ||
"regions": [ | ||
{ | ||
"region": "us-west-1" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"aws": { | ||
"profile": "rust-root", | ||
"region": "us-east-1" | ||
"regions": [ | ||
{ | ||
"region": "us-east-1" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"aws": { | ||
"profile": "sync-team-prod", | ||
"region": "us-east-2" | ||
"regions": [ | ||
{ | ||
"region": "us-east-2" | ||
} | ||
] | ||
} | ||
} |
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