dcm4chee/dcm4chee-arc-ec2-psql-acmdns.yml [602:679]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - ArcTCP11112Listener
    - LdapService
    - StorageNFSMountTarget1
    - StorageNFSMountTarget2
    Properties:
      Cluster: !GetAtt DCM4CHEECluster.Arn
      DeploymentConfiguration:
        MaximumPercent: 200
        MinimumHealthyPercent: 100
      DeploymentController:
        Type: ECS
      DesiredCount: !Ref NumberofARCHIVEContainers
      LaunchType: EC2
      LoadBalancers:
        - ContainerName: arc
          ContainerPort: 8080
          TargetGroupArn: !Ref ArcTCP8080TargetGroup
        - ContainerName: arc
          ContainerPort: 8443
          TargetGroupArn: !Ref ArcTCP8443TargetGroup
        - ContainerName: arc
          ContainerPort: 11112
          TargetGroupArn: !Ref ArcTCP11112TargetGroup
      NetworkConfiguration:
        AwsvpcConfiguration:
          AssignPublicIp: DISABLED
          SecurityGroups:
            - !Ref DefaultSecurityGroup
          Subnets:
            - !Ref PublicSubnet1Id
            - !Ref PublicSubnet2Id
      PropagateTags: SERVICE
      SchedulingStrategy: REPLICA
      ServiceRegistries:
        - RegistryArn: !GetAtt ArcServiceDiscoveryEntry.Arn
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      - Key: service
        Value: arc
      TaskDefinition:
        Ref: ArcTaskDefinition
  ArcTCP8080Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8080TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8080
      Protocol: TCP
  ArcTCP8080TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 8080
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTCP8443Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8443TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8443
      Protocol: TCP
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dcm4chee/dcm4chee-arc-ec2-psql.yml [562:639]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - ArcTCP11112Listener
    - LdapService
    - StorageNFSMountTarget1
    - StorageNFSMountTarget2
    Properties:
      Cluster: !GetAtt DCM4CHEECluster.Arn
      DeploymentConfiguration:
        MaximumPercent: 200
        MinimumHealthyPercent: 100
      DeploymentController:
        Type: ECS
      DesiredCount: !Ref NumberofARCHIVEContainers
      LaunchType: EC2
      LoadBalancers:
        - ContainerName: arc
          ContainerPort: 8080
          TargetGroupArn: !Ref ArcTCP8080TargetGroup
        - ContainerName: arc
          ContainerPort: 8443
          TargetGroupArn: !Ref ArcTCP8443TargetGroup
        - ContainerName: arc
          ContainerPort: 11112
          TargetGroupArn: !Ref ArcTCP11112TargetGroup
      NetworkConfiguration:
        AwsvpcConfiguration:
          AssignPublicIp: DISABLED
          SecurityGroups:
            - !Ref DefaultSecurityGroup
          Subnets:
            - !Ref PublicSubnet1Id
            - !Ref PublicSubnet2Id
      PropagateTags: SERVICE
      SchedulingStrategy: REPLICA
      ServiceRegistries:
        - RegistryArn: !GetAtt ArcServiceDiscoveryEntry.Arn
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      - Key: service
        Value: arc
      TaskDefinition:
        Ref: ArcTaskDefinition
  ArcTCP8080Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8080TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8080
      Protocol: TCP
  ArcTCP8080TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 8080
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTCP8443Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8443TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8443
      Protocol: TCP
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



