Skip to content

Commit ba5db46

Browse files
add subnets to ecs service
1 parent b7c0214 commit ba5db46

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ Resources:
6060
SecurityGroups:
6161
- !ImportValue VPC-ELBSecurityGroup
6262
Subnets:
63-
# TODO: This copies geocoder and the code.org load balancer, but we may prefer something unique
63+
# Place load balancer in public subnets, so it's accessible from the internet.
64+
# We may want to move this to the private subnets, so only internal resources
65+
# can access it, but this is very convenient for local development.
6466
- !ImportValue VPC-PublicSubnetB
6567
- !ImportValue VPC-PublicSubnetC
6668
- !ImportValue VPC-PublicSubnetD
@@ -134,9 +136,11 @@ Resources:
134136
SecurityGroups:
135137
- !Ref ECSSecurityGroup
136138
Subnets:
137-
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
139+
# Place ECS Service in private subnets, but traffic should use the LoadBalancer.
138140
- !ImportValue VPC-SubnetB
139141
- !ImportValue VPC-SubnetC
142+
- !ImportValue VPC-SubnetD
143+
- !ImportValue VPC-SubnetE
140144
LoadBalancers:
141145
- ContainerName: aiproxy
142146
ContainerPort: 80

0 commit comments

Comments
 (0)