cloudformation/FIXEngineApplication.yml [2464:2549]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Properties:
      Cluster: !Ref 'PrimaryECSCluster'
      DesiredCount: 1
      LaunchType: FARGATE
      LoadBalancers:
        - ContainerName: !Ref 'AWS::StackName'
          ContainerPort: !Ref 'FIXServerPort'
          TargetGroupArn: !Ref 'PrimaryTargetGroup'
      NetworkConfiguration:
        AwsvpcConfiguration:
          SecurityGroups:
            - !Ref 'FargateSecurityGroup'
          Subnets:
            - !Ref 'PrimaryPrivateSubnet'
      TaskDefinition: !Ref 'PrimaryAcceptorECSTaskDefinition'
    Type: AWS::ECS::Service
  PrimaryAcceptorECSTaskDefinition:
    Condition: IsAcceptorStack
    DependsOn:
      - ECRRepository
      - FargateLogGroup
      - FargateTaskRole
      - FargateExecutionRole
      - MSKClusterInfoRetriever
      - RDSClusterNonAdminSecret
      - ECSImageBuildWaiter
      - GlobalAccelerator
    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'
            - Name: GLOBAL_ACCELERATOR_ARN
              Value: !If
                - IsAcceptorStack
                - !GetAtt 'GlobalAccelerator.AcceleratorArn'
                - ''
            - Name: GLOBAL_ACCELERATOR_ENDPOINT_ARN
              Value: !If
                - IsAcceptorStack
                - !Ref 'PrimaryNLB'
                - ''
          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'
                  - Primary
          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
  PrimaryECSCluster:
    Type: AWS::ECS::Cluster
  PrimaryInitiatorECSService:
    Condition: IsInitiatorStack
    DependsOn:
      - PrimaryECSCluster
      - FargateSecurityGroup
      - PrimaryInitiatorECSTaskDefinition
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cloudformation/FIXEngineVPCApplication.yml [2655:2740]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Properties:
      Cluster: !Ref 'PrimaryECSCluster'
      DesiredCount: 1
      LaunchType: FARGATE
      LoadBalancers:
        - ContainerName: !Ref 'AWS::StackName'
          ContainerPort: !Ref 'FIXServerPort'
          TargetGroupArn: !Ref 'PrimaryTargetGroup'
      NetworkConfiguration:
        AwsvpcConfiguration:
          SecurityGroups:
            - !Ref 'FargateSecurityGroup'
          Subnets:
            - !Ref 'PrimaryPrivateSubnet'
      TaskDefinition: !Ref 'PrimaryAcceptorECSTaskDefinition'
    Type: AWS::ECS::Service
  PrimaryAcceptorECSTaskDefinition:
    Condition: IsAcceptorStack
    DependsOn:
      - ECRRepository
      - FargateLogGroup
      - FargateTaskRole
      - FargateExecutionRole
      - MSKClusterInfoRetriever
      - RDSClusterNonAdminSecret
      - ECSImageBuildWaiter
      - GlobalAccelerator
    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'
            - Name: GLOBAL_ACCELERATOR_ARN
              Value: !If
                - IsAcceptorStack
                - !GetAtt 'GlobalAccelerator.AcceleratorArn'
                - ''
            - Name: GLOBAL_ACCELERATOR_ENDPOINT_ARN
              Value: !If
                - IsAcceptorStack
                - !Ref 'PrimaryNLB'
                - ''
          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'
                  - Primary
          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
  PrimaryECSCluster:
    Type: AWS::ECS::Cluster
  PrimaryInitiatorECSService:
    Condition: IsInitiatorStack
    DependsOn:
      - PrimaryECSCluster
      - FargateSecurityGroup
      - PrimaryInitiatorECSTaskDefinition
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



