From ddf5275a37ce20125524be7a84337fad1b2b9b96 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 2 May 2020 03:20:49 -0400 Subject: [PATCH] Fix --- infrastructure/cloudformation/dt/load_balancing.yaml | 6 ++++-- infrastructure/cloudformation/dt/task.yaml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/infrastructure/cloudformation/dt/load_balancing.yaml b/infrastructure/cloudformation/dt/load_balancing.yaml index 3c4a1bf..a0f1f2d 100644 --- a/infrastructure/cloudformation/dt/load_balancing.yaml +++ b/infrastructure/cloudformation/dt/load_balancing.yaml @@ -37,8 +37,10 @@ Resources: NlbTargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: + HealthCheckProtocol: TCP + HealthCheckPort: 80 Port: 7777 - Protocol: UDP + Protocol: TCP_UDP TargetGroupAttributes: - Key: deregistration_delay.timeout_seconds Value: '20' @@ -55,7 +57,7 @@ Resources: TargetGroupArn: !Ref NlbTargetGroup LoadBalancerArn: !Ref PublicNLB Port: 7777 - Protocol: UDP + Protocol: TCP_UDP Outputs: diff --git a/infrastructure/cloudformation/dt/task.yaml b/infrastructure/cloudformation/dt/task.yaml index 498f09b..1c5ac65 100644 --- a/infrastructure/cloudformation/dt/task.yaml +++ b/infrastructure/cloudformation/dt/task.yaml @@ -33,10 +33,10 @@ Resources: Image: !Sub "josephbmanley/defend-together:${DockerTag}" MemoryReservation: 250 PortMappings: - - HostPort: 0 + - HostPort: 7777 ContainerPort: 7777 Protocol: udp - - HostPort: 0 + - HostPort: 80 ContainerPort: 80 Protocol: tcp LogConfiguration: