@@ -47,37 +47,37 @@ Resources:
47
47
- !ImportValue VPC-PublicSubnetD
48
48
- !ImportValue VPC-PublicSubnetE
49
49
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
59
59
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
74
74
75
75
ECSCluster :
76
76
Type : " AWS::ECS::Cluster"
77
77
78
78
ECSService :
79
79
Type : " AWS::ECS::Service"
80
- # DependsOn: LoadBalancerListener
80
+ DependsOn : LoadBalancerListener
81
81
Properties :
82
82
Cluster : !Ref ECSCluster
83
83
DesiredCount : 1
@@ -92,10 +92,10 @@ Resources:
92
92
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
93
93
- !ImportValue VPC-SubnetB
94
94
- !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
99
99
100
100
ECSSecurityGroup :
101
101
Type : AWS::EC2::SecurityGroup
0 commit comments