Skip to content

Commit c32fd3a

Browse files
committed
chore: aws s3 backplane rename policy when using WIF
1 parent ee7c8b0 commit c32fd3a

File tree

1 file changed

+1
-1
lines changed
  • modules/aws/s3_bucket/backplane

1 file changed

+1
-1
lines changed

modules/aws/s3_bucket/backplane/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data "aws_iam_policy_document" "s3_full_access" {
1919
}
2020

2121
resource "aws_iam_policy" "buildingblock_s3_policy" {
22-
name = "S3BuildingBlockPolicy"
22+
name = var.workload_identity_federation == null ? "S3BuildingBlockPolicy" : "S3BuildingBlockFederatedPolicy"
2323
description = "Policy for the S3 Building Block"
2424
policy = data.aws_iam_policy_document.s3_full_access.json
2525
}

0 commit comments

Comments
 (0)