Skip to content

Commit e8353bb

Browse files
try simplifying template to allow LB recreation
1 parent b87c216 commit e8353bb

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,37 +47,37 @@ Resources:
4747
- !ImportValue VPC-PublicSubnetD
4848
- !ImportValue VPC-PublicSubnetE
4949

50-
LoadBalancerListener:
51-
Type: AWS::ElasticLoadBalancingV2::Listener
52-
Properties:
53-
DefaultActions:
54-
- Type: forward
55-
TargetGroupArn: !Ref ECSTargetGroup
56-
LoadBalancerArn: !Ref LoadBalancer
57-
Port: 80
58-
Protocol: HTTP
50+
# LoadBalancerListener:
51+
# Type: AWS::ElasticLoadBalancingV2::Listener
52+
# Properties:
53+
# DefaultActions:
54+
# - Type: forward
55+
# TargetGroupArn: !Ref ECSTargetGroup
56+
# LoadBalancerArn: !Ref LoadBalancer
57+
# Port: 80
58+
# Protocol: HTTP
5959

60-
ECSTargetGroup:
61-
Type: AWS::ElasticLoadBalancingV2::TargetGroup
62-
Properties:
63-
# TODO: This copies geocoder, but we should probably have a separate VPC for this service.
64-
VpcId: !ImportValue VPC
65-
Port: 80
66-
TargetType: ip
67-
Protocol: HTTP
68-
HealthCheckIntervalSeconds: 30
69-
HealthCheckPath: /
70-
HealthCheckProtocol: HTTP
71-
HealthCheckTimeoutSeconds: 5
72-
HealthyThresholdCount: 2
73-
UnhealthyThresholdCount: 2
60+
# ECSTargetGroup:
61+
# Type: AWS::ElasticLoadBalancingV2::TargetGroup
62+
# Properties:
63+
# # TODO: This copies geocoder, but we should probably have a separate VPC for this service.
64+
# VpcId: !ImportValue VPC
65+
# Port: 80
66+
# TargetType: ip
67+
# Protocol: HTTP
68+
# HealthCheckIntervalSeconds: 30
69+
# HealthCheckPath: /
70+
# HealthCheckProtocol: HTTP
71+
# HealthCheckTimeoutSeconds: 5
72+
# HealthyThresholdCount: 2
73+
# UnhealthyThresholdCount: 2
7474

7575
ECSCluster:
7676
Type: "AWS::ECS::Cluster"
7777

7878
ECSService:
7979
Type: "AWS::ECS::Service"
80-
DependsOn: LoadBalancerListener
80+
# DependsOn: LoadBalancerListener
8181
Properties:
8282
Cluster: !Ref ECSCluster
8383
DesiredCount: 1
@@ -92,10 +92,10 @@ Resources:
9292
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
9393
- !ImportValue VPC-SubnetB
9494
- !ImportValue VPC-SubnetC
95-
LoadBalancers:
96-
- ContainerName: aiproxy
97-
ContainerPort: 80
98-
TargetGroupArn: !Ref ECSTargetGroup
95+
# LoadBalancers:
96+
# - ContainerName: aiproxy
97+
# ContainerPort: 80
98+
# TargetGroupArn: !Ref ECSTargetGroup
9999

100100
ECSSecurityGroup:
101101
Type: AWS::EC2::SecurityGroup

0 commit comments

Comments
 (0)