Skip to content

Commit

Permalink
Merge pull request #11438 from wellcomecollection/update-terraform
Browse files Browse the repository at this point in the history
Terraform: Wrap role_arn in assume_role
  • Loading branch information
rcantin-w authored Dec 10, 2024
2 parents e6937e1 + 08e9db6 commit c2375f4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions infrastructure/experience/terraform.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
terraform {
backend "s3" {
role_arn = "arn:aws:iam::130871440101:role/experience-developer"
assume_role = {
role_arn = "arn:aws:iam::130871440101:role/experience-developer"
}

bucket = "wellcomecollection-experience-infra"
key = "terraform/experience.tfstate"
Expand All @@ -13,7 +15,10 @@ data "terraform_remote_state" "accounts_experience" {
backend = "s3"

config = {
role_arn = "arn:aws:iam::760097843905:role/platform-read_only"
assume_role = {
role_arn = "arn:aws:iam::760097843905:role/platform-read_only"
}

bucket = "wellcomecollection-platform-infra"
key = "terraform/aws-account-infrastructure/experience.tfstate"
region = "eu-west-1"
Expand Down

0 comments on commit c2375f4

Please sign in to comment.