From 1d058fe2f2fc76db9d3988b783e541d2508ae5e2 Mon Sep 17 00:00:00 2001 From: Tom Ellis Date: Mon, 2 Dec 2024 12:52:55 +1100 Subject: [PATCH] Update provider-credentials.md Updated the assume_role config on the backed to match the updated syntax Signed-off-by: Tom Ellis --- runatlantis.io/docs/provider-credentials.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/runatlantis.io/docs/provider-credentials.md b/runatlantis.io/docs/provider-credentials.md index 8dcddb7463..759a63a18f 100644 --- a/runatlantis.io/docs/provider-credentials.md +++ b/runatlantis.io/docs/provider-credentials.md @@ -73,10 +73,12 @@ make sure to add the `role_arn` option: ```bash terraform { backend "s3" { - bucket = "mybucket" - key = "path/to/my/key" - region = "us-east-1" - role_arn = "arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME" + bucket = "mybucket" + key = "path/to/my/key" + region = "us-east-1" + assume_role = { + role_arn = "arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME" + } # can't use var.atlantis_user as the session name because # interpolations are not allowed in backend configuration # session_name = "${var.atlantis_user}" WON'T WORK