cloudformation/FIXEngineApplication.yml [2550:2629]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Properties:
      Cluster: !Ref 'PrimaryECSCluster'
      DesiredCount: 1
      LaunchType: FARGATE
      NetworkConfiguration:
        AwsvpcConfiguration:
          SecurityGroups:
            - !Ref 'FargateSecurityGroup'
          Subnets:
            - !Ref 'PrimaryPrivateSubnet'
      TaskDefinition: !Ref 'PrimaryInitiatorECSTaskDefinition'
    Type: AWS::ECS::Service
  PrimaryInitiatorECSTaskDefinition:
    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'
                  - 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
  PrimaryMSKEndpointParam:
    Condition: ''
    Properties:
      Description: !Join
        - ''
        - - 'Primary MSK endpoint FQDN for '
          - !Ref 'AWS::StackName'
          - ' stack'
      Name: !Join
        - /
        - - /fixengine
          - !Ref 'AWS::StackName'
          - PrimaryMSKEndpoint
      Tier: Standard
      Type: String
      Value: !GetAtt 'MSKClusterInfoRetriever.PrimaryEndpoint'
    Type: AWS::SSM::Parameter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cloudformation/FIXEngineVPCApplication.yml [2743:2822]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Properties:
      Cluster: !Ref 'PrimaryECSCluster'
      DesiredCount: 1
      LaunchType: FARGATE
      NetworkConfiguration:
        AwsvpcConfiguration:
          SecurityGroups:
            - !Ref 'FargateSecurityGroup'
          Subnets:
            - !Ref 'PrimaryPrivateSubnet'
      TaskDefinition: !Ref 'PrimaryInitiatorECSTaskDefinition'
    Type: AWS::ECS::Service
  PrimaryInitiatorECSTaskDefinition:
    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'
                  - 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
  PrimaryMSKEndpointParam:
    Condition: ''
    Properties:
      Description: !Join
        - ''
        - - 'Primary MSK endpoint FQDN for '
          - !Ref 'AWS::StackName'
          - ' stack'
      Name: !Join
        - /
        - - /fixengine
          - !Ref 'AWS::StackName'
          - PrimaryMSKEndpoint
      Tier: Standard
      Type: String
      Value: !GetAtt 'MSKClusterInfoRetriever.PrimaryEndpoint'
    Type: AWS::SSM::Parameter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



