File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments