Skip to content

Commit 6c8f0db

Browse files
committed
eli-204 removing dupe policy, adding prevent_destroy
1 parent 095dd8f commit 6c8f0db

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

infrastructure/modules/api_gateway/cloudwatch.tf

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,7 @@ resource "aws_cloudwatch_log_group" "api_gateway" {
44
tags = var.tags
55
kms_key_id = aws_kms_key.api_gateway.arn
66

7-
}
8-
9-
resource "aws_iam_policy_document" "api_gateway_logging" {
10-
statement {
11-
sid = "AllowCloudWatchLogging"
12-
effect = "Allow"
13-
actions = [
14-
"logs:CreateLogGroup",
15-
"logs:CreateLogStream",
16-
"logs:DescribeLogGroups",
17-
"logs:DescribeLogStreams",
18-
"logs:PutLogEvents",
19-
"logs:GetLogEvents",
20-
"logs:FilterLogEvents"
21-
]
22-
resources = [aws_cloudwatch_log_group.api_gateway.arn]
7+
lifecycle {
8+
prevent_destroy = false
239
}
2410
}

0 commit comments

Comments
 (0)