Skip to content

Commit

Permalink
Parameterize AWS provider region
Browse files Browse the repository at this point in the history
  • Loading branch information
psi committed May 10, 2023
1 parent c557113 commit 72bc1df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bootstrap-templates/default/deploy/metadata.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module "truss-metadata" {
source = "[email protected]:get-bridge/terraform-truss-metadata"
}
2 changes: 1 addition & 1 deletion bootstrap-templates/default/deploy/providers.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "aws" {
region = "us-east-2" # TODO: parameterize per region
region = module.truss-metadata.aws_region[local.region]
allowed_account_ids = ["127178877223"]

assume_role {
Expand Down

0 comments on commit 72bc1df

Please sign in to comment.