Skip to content

Commit b4643ac

Browse files
add alb security group
1 parent 6ad389c commit b4643ac

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,25 @@ Resources:
3838
LoadBalancer:
3939
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
4040
Properties:
41-
# TODO: add a security group?
41+
SecurityGroups:
42+
- !Ref LoadBalancerSecurityGroup
4243
Subnets:
4344
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
4445
- !ImportValue VPC-SubnetB
4546
- !ImportValue VPC-SubnetC
4647
Scheme: internet-facing
4748

49+
LoadBalancerSecurityGroup:
50+
Type: AWS::EC2::SecurityGroup
51+
Properties:
52+
GroupDescription: ELB Allowed Ports
53+
VpcId: !ImportValue VPC
54+
SecurityGroupIngress:
55+
- IpProtocol: tcp
56+
FromPort: 80
57+
ToPort: 80
58+
CidrIp: 0.0.0.0/0
59+
4860
LoadBalancerListener:
4961
Type: AWS::ElasticLoadBalancingV2::Listener
5062
Properties:

0 commit comments

Comments
 (0)