From 72bc1df56d5ea7821932a80f39f7e99660dcea86 Mon Sep 17 00:00:00 2001 From: JD Harrington Date: Tue, 4 Apr 2023 14:00:16 -0400 Subject: [PATCH] Parameterize AWS provider region --- bootstrap-templates/default/deploy/metadata.tf | 3 +++ bootstrap-templates/default/deploy/providers.tf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 bootstrap-templates/default/deploy/metadata.tf diff --git a/bootstrap-templates/default/deploy/metadata.tf b/bootstrap-templates/default/deploy/metadata.tf new file mode 100644 index 0000000..46d0298 --- /dev/null +++ b/bootstrap-templates/default/deploy/metadata.tf @@ -0,0 +1,3 @@ +module "truss-metadata" { + source = "git@github.com:get-bridge/terraform-truss-metadata" +} diff --git a/bootstrap-templates/default/deploy/providers.tf b/bootstrap-templates/default/deploy/providers.tf index 649f359..7faac1a 100644 --- a/bootstrap-templates/default/deploy/providers.tf +++ b/bootstrap-templates/default/deploy/providers.tf @@ -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 {