From 1f6ecf89d3efca27767d7c7c94580b9386063caa Mon Sep 17 00:00:00 2001 From: Edd Almond Date: Thu, 10 Jul 2025 14:57:13 +0100 Subject: [PATCH] bugfix - deduplicating a policy name as causing issues with overwriting policies! --- infrastructure/modules/s3/s3.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/modules/s3/s3.tf b/infrastructure/modules/s3/s3.tf index 0bd678d15..eb65cdfe5 100644 --- a/infrastructure/modules/s3/s3.tf +++ b/infrastructure/modules/s3/s3.tf @@ -16,7 +16,7 @@ resource "aws_s3_bucket_versioning" "storage_bucket_versioning_config" { # ensure only secure transport is allowed -resource "aws_s3_bucket_policy" "tfstate_bucket" { +resource "aws_s3_bucket_policy" "storage_bucket" { bucket = aws_s3_bucket.storage_bucket.id policy = data.aws_iam_policy_document.storage_s3_bucket_policy.json }