설명
지원 업무용 AWS::IAM::Policy에는 인라인 정책을 연결할 대상을 하나 이상 지정하세요. Roles, Users, Groups 중 실제 담당자에 맞는 항목을 사용하세요.
잠재적 영향
대상을 생략하면 정책을 배포할 수 없어 담당자가 필요한 권한을 받지 못합니다.
해결 방법
담당자에게 필요한 지원 작업만 허용하세요. 사용하지 않는 정책은 제거하고 계정의 지원 플랜이 해당 API를 제공하는지 확인하세요.
예시
AWSSupportAccess는 첫 예시의 인라인 정책 이름입니다. 두 번째 예시는 기존 myexistinggroup1 그룹에 support:DescribeCases만 허용합니다.
변경 전
yaml
Resources:
noGroups:
Type: AWS::IAM::Policy
Properties:
PolicyName: AWSSupportAccess
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action: ["support:DescribeCases"]
Resource: "*"
변경 후
yaml
Resources:
MyPolicy:
Type: AWS::IAM::Policy
Properties:
PolicyName: mygrouppolicy
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- support:DescribeCases
Resource: "*"
Groups:
- myexistinggroup1