templates/SAP_HANA_HA_HAConfig.yaml [364:391]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: 'AWS::IAM::Role'
    Properties:
      AssumeRolePolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Allow
            Principal:
              Service:
                - lambda.amazonaws.com
            Action:
              - 'sts:AssumeRole'
      ManagedPolicyArns:
      - arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole
      Path: "/"
      Policies:
        - PolicyName: LambdaHAPolicy
          PolicyDocument:
            Version: 2012-10-17
            Statement:
                - Action:
                    - 'ssm:sendCommand'
                    - 'ssm:GetDocument'
                  Resource: 
                    - !Sub "arn:aws:ssm:${AWS::Region}::document/AWS-RunShellScript"
                    - !Sub "arn:aws:ec2:${AWS::Region}:${AWS::AccountId}:instance/${HANAPrimaryInstanceId}"
                    - !Sub "arn:aws:ec2:${AWS::Region}:${AWS::AccountId}:instance/${HANASecondaryInstanceId}"
                  Effect: Allow
                - Action:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/SAP_HANA_HA_PreHAConfig.yaml [120:147]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: 'AWS::IAM::Role'
    Properties:
      AssumeRolePolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Allow
            Principal:
              Service:
                - lambda.amazonaws.com
            Action:
              - 'sts:AssumeRole'
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole
      Path: "/"
      Policies:
         - PolicyName: LambdaHAPolicy
           PolicyDocument:
             Version: 2012-10-17
             Statement:
                 - Action:
                     - 'ssm:sendCommand'
                     - 'ssm:GetDocument'
                   Resource: 
                      - !Sub "arn:aws:ssm:${AWS::Region}::document/AWS-RunShellScript"
                      - !Sub "arn:aws:ec2:${AWS::Region}:${AWS::AccountId}:instance/${HANAPrimaryInstanceId}"
                      - !Sub "arn:aws:ec2:${AWS::Region}:${AWS::AccountId}:instance/${HANASecondaryInstanceId}"
                   Effect: Allow
                 - Action:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



