Skip to content

Commit 721130c

Browse files
authored
remove cloudwatch permission from task role (#1999)
1 parent 579918a commit 721130c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

terraform/modules/department/50-aws-iam-policies.tf

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -943,27 +943,12 @@ resource "aws_iam_policy" "department_ecs_passrole" {
943943

944944
# Todo: departments should probably have their own log groups
945945
# but this is equivalent to the existing Glue set up
946-
data "aws_iam_policy_document" "ecs_cloudwatch" {
947-
statement {
948-
effect = "Allow"
949-
actions = [
950-
"logs:PutLogEvents",
951-
"logs:CreateLogStream",
952-
"logs:CreateLogGroup",
953-
"logs:AssociateKmsKey"
954-
]
955-
resources = [
956-
"arn:aws:logs:*:*:/ecs/*"
957-
]
958-
}
959-
}
960946

961947
data "aws_iam_policy_document" "ecs_department_policy" {
962948
source_policy_documents = [
963949
data.aws_iam_policy_document.s3_department_access.json,
964950
data.aws_iam_policy_document.secrets_manager_read_only.json,
965951
data.aws_iam_policy_document.read_glue_scripts_and_mwaa_and_athena.json,
966-
data.aws_iam_policy_document.ecs_cloudwatch.json,
967952
data.aws_iam_policy_document.crawler_can_access_jdbc_connection.json
968953
]
969954
}

0 commit comments

Comments
 (0)