Enable dynamic port routing
This commit is contained in:
		@ -37,10 +37,8 @@ Resources:
 | 
			
		||||
  NlbTargetGroup:
 | 
			
		||||
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
 | 
			
		||||
    Properties:
 | 
			
		||||
      HealthCheckProtocol: TCP
 | 
			
		||||
      HealthCheckPort: 80
 | 
			
		||||
      Port: 7777
 | 
			
		||||
      Protocol: TCP_UDP
 | 
			
		||||
      Protocol: UDP
 | 
			
		||||
      TargetGroupAttributes:
 | 
			
		||||
        - Key: deregistration_delay.timeout_seconds
 | 
			
		||||
          Value: '20'
 | 
			
		||||
@ -57,7 +55,7 @@ Resources:
 | 
			
		||||
          TargetGroupArn: !Ref NlbTargetGroup
 | 
			
		||||
      LoadBalancerArn: !Ref PublicNLB
 | 
			
		||||
      Port: 7777
 | 
			
		||||
      Protocol: TCP_UDP
 | 
			
		||||
      Protocol: UDP
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Outputs:
 | 
			
		||||
 | 
			
		||||
@ -33,10 +33,10 @@ Resources:
 | 
			
		||||
        Image: !Sub "josephbmanley/defend-together:${DockerTag}"
 | 
			
		||||
        MemoryReservation: 250
 | 
			
		||||
        PortMappings:
 | 
			
		||||
        - HostPort: 7777
 | 
			
		||||
        - HostPort: 0
 | 
			
		||||
          ContainerPort: 7777
 | 
			
		||||
          Protocol: udp
 | 
			
		||||
        - HostPort: 80
 | 
			
		||||
        - HostPort: 0
 | 
			
		||||
          ContainerPort: 80
 | 
			
		||||
          Protocol: tcp
 | 
			
		||||
        LogConfiguration:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user