LoginSignup
0
0

More than 3 years have passed since last update.

IAM AccessAnalyzerのCloudFormationテンプレートでエラー: Duplicate key Criterion

Posted at

エラー

  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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0