cloudformation/FIXEngineApplication.yml [1221:1300]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Properties:
      Cluster: !Ref 'FailoverECSCluster'
      DesiredCount: 1
      LaunchType: FARGATE
      NetworkConfiguration:
        AwsvpcConfiguration:
          SecurityGroups:
            - !Ref 'FargateSecurityGroup'
          Subnets:
            - !Ref 'FailoverPrivateSubnet'
      TaskDefinition: !Ref 'FailoverInitiatorECSTaskDefinition'
    Type: AWS::ECS::Service
  FailoverInitiatorECSTaskDefinition:
    Condition: IsInitiatorStack
    DependsOn:
      - ECRRepository
      - FargateLogGroup
      - FargateTaskRole
      - FargateExecutionRole
      - MSKClusterInfoRetriever
      - RDSClusterNonAdminSecret
      - ECSImageBuildWaiter
    Properties:
      ContainerDefinitions:
        - Environment:
            - Name: PRIMARY_MSK_ENDPOINT
              Value: !GetAtt 'MSKClusterInfoRetriever.PrimaryEndpoint'
            - Name: FAILOVER_MSK_ENDPOINT
              Value: !GetAtt 'MSKClusterInfoRetriever.FailoverEndpoint'
            - Name: APPLICATION_STACK_NAME
              Value: !Ref 'AWS::StackName'
          Essential: true
          Image: !If
            - UseDefaultImage
            - !Join
              - ''
              - - !Ref 'AWS::AccountId'
                - .dkr.ecr.
                - !Ref 'AWS::Region'
                - .amazonaws.com/
                - !Ref 'ECRRepository'
                - :latest
            - !Ref 'CustomImagePath'
          LogConfiguration:
            LogDriver: awslogs
            Options:
              awslogs-group: !Ref 'FargateLogGroup'
              awslogs-region: !Ref 'AWS::Region'
              awslogs-stream-prefix: !Join
                - /
                - - !Ref 'AWS::StackName'
                  - Failover
          Name: !Ref 'AWS::StackName'
          PortMappings:
            - ContainerPort: !Ref 'FIXServerPort'
      Cpu: '512'
      ExecutionRoleArn: !GetAtt 'FargateExecutionRole.Arn'
      Memory: 1GB
      NetworkMode: awsvpc
      RequiresCompatibilities:
        - FARGATE
      TaskRoleArn: !GetAtt 'FargateTaskRole.Arn'
    Type: AWS::ECS::TaskDefinition
  FailoverMSKEndpointParam:
    Condition: ''
    Properties:
      Description: !Join
        - ''
        - - 'Failover MSK endpoint FQDN for '
          - !Ref 'AWS::StackName'
          - ' stack'
      Name: !Join
        - /
        - - /fixengine
          - !Ref 'AWS::StackName'
          - FailoverMSKEndpoint
      Tier: Standard
      Type: String
      Value: !GetAtt 'MSKClusterInfoRetriever.FailoverEndpoint'
    Type: AWS::SSM::Parameter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cloudformation/FIXEngineVPCApplication.yml [1235:1314]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Properties:
      Cluster: !Ref 'FailoverECSCluster'
      DesiredCount: 1
      LaunchType: FARGATE
      NetworkConfiguration:
        AwsvpcConfiguration:
          SecurityGroups:
            - !Ref 'FargateSecurityGroup'
          Subnets:
            - !Ref 'FailoverPrivateSubnet'
      TaskDefinition: !Ref 'FailoverInitiatorECSTaskDefinition'
    Type: AWS::ECS::Service
  FailoverInitiatorECSTaskDefinition:
    Condition: IsInitiatorStack
    DependsOn:
      - ECRRepository
      - FargateLogGroup
      - FargateTaskRole
      - FargateExecutionRole
      - MSKClusterInfoRetriever
      - RDSClusterNonAdminSecret
      - ECSImageBuildWaiter
    Properties:
      ContainerDefinitions:
        - Environment:
            - Name: PRIMARY_MSK_ENDPOINT
              Value: !GetAtt 'MSKClusterInfoRetriever.PrimaryEndpoint'
            - Name: FAILOVER_MSK_ENDPOINT
              Value: !GetAtt 'MSKClusterInfoRetriever.FailoverEndpoint'
            - Name: APPLICATION_STACK_NAME
              Value: !Ref 'AWS::StackName'
          Essential: true
          Image: !If
            - UseDefaultImage
            - !Join
              - ''
              - - !Ref 'AWS::AccountId'
                - .dkr.ecr.
                - !Ref 'AWS::Region'
                - .amazonaws.com/
                - !Ref 'ECRRepository'
                - :latest
            - !Ref 'CustomImagePath'
          LogConfiguration:
            LogDriver: awslogs
            Options:
              awslogs-group: !Ref 'FargateLogGroup'
              awslogs-region: !Ref 'AWS::Region'
              awslogs-stream-prefix: !Join
                - /
                - - !Ref 'AWS::StackName'
                  - Failover
          Name: !Ref 'AWS::StackName'
          PortMappings:
            - ContainerPort: !Ref 'FIXServerPort'
      Cpu: '512'
      ExecutionRoleArn: !GetAtt 'FargateExecutionRole.Arn'
      Memory: 1GB
      NetworkMode: awsvpc
      RequiresCompatibilities:
        - FARGATE
      TaskRoleArn: !GetAtt 'FargateTaskRole.Arn'
    Type: AWS::ECS::TaskDefinition
  FailoverMSKEndpointParam:
    Condition: ''
    Properties:
      Description: !Join
        - ''
        - - 'Failover MSK endpoint FQDN for '
          - !Ref 'AWS::StackName'
          - ' stack'
      Name: !Join
        - /
        - - /fixengine
          - !Ref 'AWS::StackName'
          - FailoverMSKEndpoint
      Tier: Standard
      Type: String
      Value: !GetAtt 'MSKClusterInfoRetriever.FailoverEndpoint'
    Type: AWS::SSM::Parameter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



