From edbb1d0ac6062d28fcf232af2b375ce1f82d51aa Mon Sep 17 00:00:00 2001 From: Steven B Date: Wed, 21 Dec 2022 18:07:48 -0500 Subject: [PATCH] ignore policy changes --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index e6133f3..8694a8f 100644 --- a/main.tf +++ b/main.tf @@ -125,4 +125,8 @@ resource "aws_s3_bucket_policy" "this" { count = var.remote_bucket == "" ? 1 : 0 bucket = aws_s3_bucket.this[0].id policy = data.aws_iam_policy_document.this.json + + lifecycle { + ignore_changes = [policy] + } }