Skip to content

Commit

Permalink
re-add provider for existing state
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Feb 15, 2024
1 parent 1df5a0b commit 8823c68
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions modules/imagebuilder/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 8823c68

Please sign in to comment.