From 08e9db6f343944486facfa4e548f5607281d4f80 Mon Sep 17 00:00:00 2001 From: Raphaelle Cantin Date: Tue, 10 Dec 2024 13:43:33 +0000 Subject: [PATCH] Wrap role_arn in assume_role --- infrastructure/experience/terraform.tf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/infrastructure/experience/terraform.tf b/infrastructure/experience/terraform.tf index 12c0aca0a3..b199a00d11 100644 --- a/infrastructure/experience/terraform.tf +++ b/infrastructure/experience/terraform.tf @@ -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" @@ -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"