エラー
An error occurred: IAMAccessAnalyzer - Duplicate key Criterion(Contains=[], Eq=[111111111111], Neq=[]).
間違い
IAMAccessAnalyzer:
Type: AWS::AccessAnalyzer::Analyzer
Properties:
AnalyzerName: Main
ArchiveRules:
- RuleName: 'TrustedAccounts'
Filter:
- Property: 'principal.AWS'
Eq:
- '111111111111'
- Property: 'principal.AWS'
Eq:
- '111111111112'
Type: ACCOUNT
修正後
IAMAccessAnalyzer:
Type: AWS::AccessAnalyzer::Analyzer
Properties:
AnalyzerName: Main
ArchiveRules:
- RuleName: 'TrustedAccounts'
Filter:
- Property: 'principal.AWS'
Eq:
- '111111111111'
- '111111111112'
Type: ACCOUNT