templates/ha.template.yaml [269:335]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: 'AWS::EC2::Instance'
    Properties:
      BlockDeviceMappings:
        - DeviceName: !GetAtt HAInstanceAMI.RootDeviceName
          Ebs:
            Encrypted: true
      ImageId: !If 
        - IsMarketplaceDeployment
        - !FindInMap
          - RegionMap
          - !Ref 'AWS::Region'
          - x8664
        - !Ref HAInstanceAMI
      InstanceType: m4.xlarge
      KeyName: !Ref KeyPairName
      SecurityGroupIds:
        - !Ref HaaSecurityGroup
      SubnetId: !Select [ '1', !Ref SubnetIDs ]
      UserData: !If
        - IsMarketplaceDeployment
        - !Base64
            'Fn::Join':
              - |+

              - - '#!/bin/bash'
                - cd /home/ec2-user/temp
                - chmod +x get-haa.sh
                - !Join
                  - ' '
                  - - sh get-haa.sh
                    - '-u'
                    - !Ref HAAUser
                    - '-p'
                    - !Ref HAAPassword
                    - '-j '
                    - !GetAtt
                      - HAMain
                      - PrivateIp
                    - '--accept-license-agreement'
                    - '--verbose'
        - !Base64
            'Fn::Join':
              - |+

              - - '#!/bin/bash'
                - yum update -y
                - yum install -y wget
                - 'wget https://download.uipath.com/haa/2021.10.1/get-haa.sh'
                - chmod +x get-haa.sh
                - !Join
                  - ' '
                  - - sh get-haa.sh
                    - '-u'
                    - !Ref HAAUser
                    - '-p'
                    - !Ref HAAPassword
                    - '-j '
                    - !GetAtt
                      - HAMain
                      - PrivateIp
                    - '--accept-license-agreement'
                    - '--verbose'
      Tags:
        - Key: Name
          Value: !Join
            - '-'
            - - !Ref 'AWS::StackName'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/ha.template.yaml [338:404]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: 'AWS::EC2::Instance'
    Properties:
      BlockDeviceMappings:
        - DeviceName: !GetAtt HAInstanceAMI.RootDeviceName
          Ebs:
            Encrypted: true
      ImageId: !If 
        - IsMarketplaceDeployment
        - !FindInMap
          - RegionMap
          - !Ref 'AWS::Region'
          - x8664
        - !Ref HAInstanceAMI
      InstanceType: m4.xlarge
      KeyName: !Ref KeyPairName
      SecurityGroupIds:
        - !Ref HaaSecurityGroup
      SubnetId: !Select [ '1',  !Ref SubnetIDs ]
      UserData: !If
        - IsMarketplaceDeployment
        - !Base64
            'Fn::Join':
              - |+

              - - '#!/bin/bash'
                - cd /home/ec2-user/temp
                - chmod +x get-haa.sh
                - !Join
                  - ' '
                  - - sh get-haa.sh
                    - '-u'
                    - !Ref HAAUser
                    - '-p'
                    - !Ref HAAPassword
                    - '-j '
                    - !GetAtt
                      - HAMain
                      - PrivateIp
                    - '--accept-license-agreement'
                    - '--verbose'
        - !Base64
            'Fn::Join':
              - |+

              - - '#!/bin/bash'
                - yum update -y
                - yum install -y wget
                - 'wget https://download.uipath.com/haa/2021.10.1/get-haa.sh'
                - chmod +x get-haa.sh
                - !Join
                  - ' '
                  - - sh get-haa.sh
                    - '-u'
                    - !Ref HAAUser
                    - '-p'
                    - !Ref HAAPassword
                    - '-j '
                    - !GetAtt
                      - HAMain
                      - PrivateIp
                    - '--accept-license-agreement'
                    - '--verbose'
      Tags:
        - Key: Name
          Value: !Join
            - '-'
            - - !Ref 'AWS::StackName'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



