Description
For a support AWS::IAM::Policy, specify at least one recipient of the inline policy. Use Roles, Users or Groups according to who handles support.
Potential impact
Without an attachment target the policy cannot deploy, leaving the intended support staff without this grant.
Remediation
Allow only the support actions they need. Remove unused policies and check that the account’s support plan includes the required API.
Examples
AWSSupportAccess is the inline policy name in the first excerpt. The second grants only support:DescribeCases to the existing myexistinggroup1 group.
Before
yaml
Resources:
noGroups:
Type: AWS::IAM::Policy
Properties:
PolicyName: AWSSupportAccess
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action: ["support:DescribeCases"]
Resource: "*"
After
yaml
Resources:
MyPolicy:
Type: AWS::IAM::Policy
Properties:
PolicyName: mygrouppolicy
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- support:DescribeCases
Resource: "*"
Groups:
- myexistinggroup1