Skip to content

Commit

Permalink
skip: Merge branch 'update_iam_per_policy' into feature/policy_testin…
Browse files Browse the repository at this point in the history
…g_v2
  • Loading branch information
anna-shcherbak committed Jul 8, 2024
2 parents a1622eb + 5bcda0e commit c6293c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
TF_BACKEND_STORAGE_NAME: ${{ secrets.TF_BACKEND_STORAGE_NAME }}
TF_CLI_ARGS: "-no-color"
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
default_resource_priority_list: '[ "ec2"]'
default_resource_priority_list: '[ "ecs"]'
RED: '\033[0;31m'

permissions:
Expand Down
5 changes: 4 additions & 1 deletion policies/ecc-aws-494-ecs_fargate_latest_platform_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ policies:
- name: ecc-aws-494-ecs_fargate_latest_platform_version
comment: '010021082000'
description: |
ECS Fargate not latest platform version
ECS service with Fargate does not have latest platform version
resource: ecs-service
filters:
- type: value
key: launchType
value: FARGATE
- not:
- type: value
key: platformVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeRegions",
"ecs:ListClusters",
"ecs:ListContainerInstances",
"ecs:DescribeContainerInstances",
"ec2:DescribeInstances",
"ec2:DescribeVolumes",
"ecs:DescribeClusters"
"Action": [
"ecs:ListServices",
"ecs:DescribeServices",
"ecs:ListClusters"
],
"Resource": "*"
}
]
}
}
3 changes: 2 additions & 1 deletion terraform/ecc-aws-610-idle_ec2_instance/iam/610-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"Effect": "Allow",
"Action": [
"cloudwatch:GetMetricStatistics",
"ec2:DescribeInstances"
"ec2:DescribeInstances",
"ec2:DescribeTags"
],
"Resource": "*"
}
Expand Down

0 comments on commit c6293c9

Please sign in to comment.