diff --git a/iam_builder/templates.py b/iam_builder/templates.py index c2db00d..85e1656 100755 --- a/iam_builder/templates.py +++ b/iam_builder/templates.py @@ -172,8 +172,8 @@ "Sid": "CanGetCloudWatchAthenaLogs", "Effect": "Allow", "Action": [ - "log:GetLogEvents", - "log:GetLogRecord" + "logs:GetLogEvents", + "logs:GetLogRecord" ], "Resource": [ "arn:aws:logs:eu-west-2:593291632749:log-group:cloudtrail-athena-events:*" diff --git a/tests/expected_policy/cloudwatch_athena_query_executions.json b/tests/expected_policy/cloudwatch_athena_query_executions.json index b0651d9..f6fa044 100644 --- a/tests/expected_policy/cloudwatch_athena_query_executions.json +++ b/tests/expected_policy/cloudwatch_athena_query_executions.json @@ -5,8 +5,8 @@ "Sid": "CanGetCloudWatchAthenaLogs", "Effect": "Allow", "Action": [ - "log:GetLogEvents", - "log:GetLogRecord" + "logs:GetLogEvents", + "logs:GetLogRecord" ], "Resource": ["arn:aws:logs:eu-west-2:593291632749:log-group:cloudtrail-athena-events:*"] }