From 92df73b2c8a736df20ee8f9bb0814ef07edcbf58 Mon Sep 17 00:00:00 2001 From: Nikki Tebaldi <17799906+nikki-t@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:14:07 -0500 Subject: [PATCH] Define ignore_changes lifecycle block for resource policy (#97) Co-authored-by: Frank Greguska <89428916+frankinspace@users.noreply.github.com> --- terraform/hydrocron-apigw.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/hydrocron-apigw.tf b/terraform/hydrocron-apigw.tf index e0536a2d..b7e9297e 100644 --- a/terraform/hydrocron-apigw.tf +++ b/terraform/hydrocron-apigw.tf @@ -30,6 +30,9 @@ resource "aws_api_gateway_rest_api" "hydrocron-api-gateway" { resource "aws_api_gateway_rest_api_policy" "hydrocron-api-gateway-policy" { rest_api_id = aws_api_gateway_rest_api.hydrocron-api-gateway.id policy = data.aws_iam_policy_document.apigw-resource-policy.json + lifecycle { + ignore_changes = [ policy ] + } }