We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 095dd8f commit 6c8f0dbCopy full SHA for 6c8f0db
infrastructure/modules/api_gateway/cloudwatch.tf
@@ -4,21 +4,7 @@ resource "aws_cloudwatch_log_group" "api_gateway" {
4
tags = var.tags
5
kms_key_id = aws_kms_key.api_gateway.arn
6
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]
+ lifecycle {
+ prevent_destroy = false
23
}
24
0 commit comments