From e85209b9787e4d4278ef3552c20bf0bbfab91f68 Mon Sep 17 00:00:00 2001 From: Matthew Price Date: Thu, 25 Jan 2024 15:23:41 +0000 Subject: [PATCH] fix variable reference typo --- terraform/environments/electronic-monitoring-data/s3.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terraform/environments/electronic-monitoring-data/s3.tf b/terraform/environments/electronic-monitoring-data/s3.tf index 008045b67ed..c6dffa8a05b 100644 --- a/terraform/environments/electronic-monitoring-data/s3.tf +++ b/terraform/environments/electronic-monitoring-data/s3.tf @@ -33,7 +33,7 @@ resource "aws_s3_bucket" "capita_landing_bucket" { resource "aws_s3_bucket_policy" "capita_landing_bucket_policy" { bucket = aws_s3_bucket.capita_landing_bucket.id - policy = aws_iam_policy_document.capita_landing_bucket_policy_document.json + policy = data.aws_iam_policy_document.capita_landing_bucket_policy_document.json } data "aws_iam_policy_document" "capita_landing_bucket_policy_document" { @@ -50,7 +50,6 @@ data "aws_iam_policy_document" "capita_landing_bucket_policy_document" { variable = "s3:TlsVersion" values = [1.2] } - } }