Skip to content

Commit

Permalink
Define ignore_changes lifecycle block for resource policy (#97)
Browse files Browse the repository at this point in the history
Co-authored-by: Frank Greguska <[email protected]>
  • Loading branch information
nikki-t and frankinspace authored Mar 5, 2024
1 parent 845f4cf commit 92df73b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/hydrocron-apigw.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}
}


Expand Down

0 comments on commit 92df73b

Please sign in to comment.