diff --git a/modules/imagebuilder/versions.tf b/modules/imagebuilder/versions.tf index 3b6a86b7e..8cfea3439 100644 --- a/modules/imagebuilder/versions.tf +++ b/modules/imagebuilder/versions.tf @@ -8,15 +8,15 @@ terraform { required_version = "=1.5.7" } -# provider "aws" { -# alias = "modernisation-platform" -# region = "eu-west-2" -# } +provider "aws" { + alias = "modernisation-platform" + region = "eu-west-2" +} -# # AWS provider for the workspace you're working in (every resource will default to using this, unless otherwise specified) -# provider "aws" { -# region = "eu-west-2" -# assume_role { -# role_arn = "arn:aws:iam::${local.environment_management.account_ids[terraform.workspace]}:role/ModernisationPlatformAccess" -# } -# } +# AWS provider for the workspace you're working in (every resource will default to using this, unless otherwise specified) +provider "aws" { + region = "eu-west-2" + assume_role { + role_arn = "arn:aws:iam::${local.environment_management.account_ids[terraform.workspace]}:role/ModernisationPlatformAccess" + } +}