Skip to content

Commit cf9f64c

Browse files
authored
Update aws_cis_v120_1_20.yaml
1 parent 99e96ed commit cf9f64c

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

compliance/controls/aws/aws_cis_v120_1_20.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
Description: AWS provides a support center that can be used for incident notification and response, as well as technical support and customer services. Create an IAM Role to allow authorized users to manage incidents with AWS Support.
21
ID: aws_cis_v120_1_20
2+
3+
Title: 1.20 Ensure a support role has been created to manage incidents with AWS Support
4+
Description: AWS provides a support center that can be used for incident notification and response, as well as technical support and customer services. Create an IAM Role to allow authorized users to manage incidents with AWS Support.
35
IntegrationType:
46
- aws_cloud_account
57
Query:
@@ -13,9 +15,11 @@ Query:
1315
WITH support_role_count AS (
1416
SELECT
1517
'arn:' || a.partition || ':::' || a.account_id AS resource,
16-
COUNT(policy_arn),
18+
COUNT(policy_arn) AS count,
1719
a.account_id,
18-
a._ctx
20+
a._ctx,
21+
a.platform_account_id,
22+
a.platform_resource_id
1923
FROM
2024
aws_account AS a
2125
LEFT JOIN aws_iam_role AS r
@@ -28,23 +32,25 @@ Query:
2832
GROUP BY
2933
a.account_id,
3034
a.partition,
31-
a._ctx
35+
a._ctx,
36+
a.platform_account_id,
37+
a.platform_resource_id
3238
)
3339
SELECT
3440
resource,
35-
a.platform_account_id AS platform_account_id,
36-
a.platform_resource_id AS platform_resource_id,
41+
platform_account_id,
42+
platform_resource_id,
3743
CASE
38-
WHEN COUNT > 0 THEN 'ok'
44+
WHEN count > 0 THEN 'ok'
3945
ELSE 'alarm'
4046
END AS status,
4147
CASE
42-
WHEN COUNT = 1 THEN 'AWSSupportAccess policy attached to 1 role.'
43-
WHEN COUNT > 1 THEN 'AWSSupportAccess policy attached to ' || COUNT || ' roles.'
48+
WHEN count = 1 THEN 'AWSSupportAccess policy attached to 1 role.'
49+
WHEN count > 1 THEN 'AWSSupportAccess policy attached to ' || count || ' roles.'
4450
ELSE 'AWSSupportAccess policy not attached to any role.'
4551
END AS reason
4652
FROM
4753
support_role_count;
4854
Severity: low
4955
Tags: {}
50-
Title: 1.20 Ensure a support role has been created to manage incidents with AWS Support
56+

0 commit comments

Comments
 (0)