Skip to content

Commit

Permalink
upd: update policy 118 to be supported by open source Cloud Custodian
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-shcherbak committed Jan 28, 2025
1 parent 0fa2912 commit 0157f50
Show file tree
Hide file tree
Showing 25 changed files with 291 additions and 448 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ policies:
- name: ecc-aws-118-ecs_cluster_have_empty_roles_for_service_task_definitions
comment: '010033082000'
description: |
Container is using IAM roles for an instance
resource: ecs-service
ECS task definition without attached task IAM role for AWS resource access
resource: aws.ecs-task-definition
filters:
- type: ecs-task-definition-filter
- type: value
key: taskRoleArn
value: empty
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "aws_iam_policy" "this" {
"logs:PutLogEvents",
"logs:DescribeLogStreams"
],
"Resource": "${aws_cloudwatch_log_group.this.arn}/*"
"Resource": "${aws_cloudwatch_log_group.this.arn}:*"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "aws_iam_policy" "this" {
"logs:PutLogEvents",
"logs:DescribeLogStreams"
],
"Resource": "${aws_cloudwatch_log_group.this.arn}/*"
"Resource": "${aws_cloudwatch_log_group.this.arn}:*"
}
]
}
Expand Down
Loading

0 comments on commit 0157f50

Please sign in to comment.