diff --git a/main.tf b/main.tf index 3db7c62..78c2a83 100644 --- a/main.tf +++ b/main.tf @@ -98,6 +98,13 @@ data "aws_iam_policy_document" "cloudwatch-log-group" { } statement { + actions = ["logs:CreateLogGroup"] + resources = [aws_cloudwatch_log_group.this.arn] + } + + statement { + # CreateLogGroup stays here until the 2027-04-26 CloudWatch Logs ARN change + # has rolled out in every region; until then it is authorized via the `:*` ARN. actions = ["logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents"] resources = ["${aws_cloudwatch_log_group.this.arn}:*"] }