Skip to content

Commit a174ab3

Browse files
tweak ports and add healthcheck
1 parent af7bbe4 commit a174ab3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ Resources:
3838
LoadBalancer:
3939
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
4040
Properties:
41-
Name: MyLoadBalancer
42-
# TODO configure this more intentionally
43-
LoadBalancerAttributes:
44-
- Key: idle_timeout.timeout_seconds
45-
Value: '60'
41+
# TODO: add a security group?
4642
Subnets:
4743
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
4844
- !ImportValue VPC-SubnetB
@@ -67,6 +63,12 @@ Resources:
6763
TargetType: ip
6864
# TODO: This copies geocoder, but we should probably have a separate VPC for this service.
6965
VpcId: !ImportValue VPC
66+
HealthCheckIntervalSeconds: 30
67+
HealthCheckPath: /test
68+
HealthCheckProtocol: HTTP
69+
HealthCheckTimeoutSeconds: 5
70+
HealthyThresholdCount: 2
71+
UnhealthyThresholdCount: 2
7072

7173
ECSCluster:
7274
Type: "AWS::ECS::Cluster"
@@ -118,7 +120,6 @@ Resources:
118120
Essential: true
119121
PortMappings:
120122
- ContainerPort: 5000
121-
HostPort: 5000
122123
LogConfiguration:
123124
LogDriver: awslogs
124125
Options:

0 commit comments

Comments
 (0)