templates/rocketmq-node-broker.template.yaml [293:336]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                - ''''
                - '"'
            - " >> config.sh\n"
            - "# Store Apache RocketMQ version\n"
            - 'echo '
            - !Join
              - ''
              - - '"'
                - export RocketMQVersion='
                - !Ref 'RocketMQVersion'
                - ''''
                - '"'
            - " >> config.sh\n"
            - "mkdir -p /rocketmq_auth \n"
            - "./init.sh > install.log 2>&1 \n"
            - "chown -R ec2-user:ec2-user /home/ec2-user/ \n"
            - "/home/ec2-user/rocketmq-deploy/signalFinalStatus.sh 0\n"
            - "#  Cleanup \n"
            - "rm -rf init.sh\n"
            - "rm -rf config.sh\n"
            - "rm -rf orchestrator.sh\n"
            - "rm -rf signalFinalStatus.sh\n"
      InstanceType: !Ref 'BrokerNodeInstanceType'
  NodeInstanceRecoveryAlarm:
    Type: AWS::CloudWatch::Alarm
    Condition: InstanceRecoverySupported
    Properties:
      AlarmDescription: EC2 Autorecovery for Node Instance. Autorecover if we fail
        EC2 status checks for 5 minutes.
      Namespace: AWS/EC2
      MetricName: StatusCheckFailed_System
      Statistic: Minimum
      Period: 60
      EvaluationPeriods: 5
      ComparisonOperator: GreaterThanThreshold
      Threshold: 0.0
      AlarmActions:
        - !Join
          - ''
          - - !Sub 'arn:${AWS::Partition}:automate:'
            - !Ref 'AWS::Region'
            - :ec2:recover
      Dimensions:
        - Name: InstanceId
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/rocketmq-node-nameserver.template.yaml [292:335]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                - ''''
                - '"'
            - " >> config.sh\n"
            - "# Store Apache RocketMQ version\n"
            - 'echo '
            - !Join
              - ''
              - - '"'
                - export RocketMQVersion='
                - !Ref 'RocketMQVersion'
                - ''''
                - '"'
            - " >> config.sh\n"
            - "mkdir -p /rocketmq_auth \n"
            - "./init.sh > install.log 2>&1 \n"
            - "chown -R ec2-user:ec2-user /home/ec2-user/ \n"
            - "/home/ec2-user/rocketmq-deploy/signalFinalStatus.sh 0\n"
            - "#  Cleanup \n"
            - "rm -rf init.sh\n"
            - "rm -rf config.sh\n"
            - "rm -rf orchestrator.sh\n"
            - "rm -rf signalFinalStatus.sh\n"
      InstanceType: !Ref 'BrokerNodeInstanceType'
  NodeInstanceRecoveryAlarm:
    Type: AWS::CloudWatch::Alarm
    Condition: InstanceRecoverySupported
    Properties:
      AlarmDescription: EC2 Autorecovery for Node Instance. Autorecover if we fail
        EC2 status checks for 5 minutes.
      Namespace: AWS/EC2
      MetricName: StatusCheckFailed_System
      Statistic: Minimum
      Period: 60
      EvaluationPeriods: 5
      ComparisonOperator: GreaterThanThreshold
      Threshold: 0.0
      AlarmActions:
        - !Join
          - ''
          - - !Sub 'arn:${AWS::Partition}:automate:'
            - !Ref 'AWS::Region'
            - :ec2:recover
      Dimensions:
        - Name: InstanceId
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



