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:
38
38
LoadBalancer :
39
39
Type : AWS::ElasticLoadBalancingV2::LoadBalancer
40
40
Properties :
41
- # TODO: add a security group?
41
+ SecurityGroups :
42
+ - !Ref LoadBalancerSecurityGroup
42
43
Subnets :
43
44
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
44
45
- !ImportValue VPC-SubnetB
45
46
- !ImportValue VPC-SubnetC
46
47
Scheme : internet-facing
47
48
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
+
48
60
LoadBalancerListener :
49
61
Type : AWS::ElasticLoadBalancingV2::Listener
50
62
Properties :
You can’t perform that action at this time.
0 commit comments