We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ad389c commit b4643acCopy full SHA for b4643ac
1 file changed
cicd/3-app/aiproxy/template.yml
@@ -38,13 +38,25 @@ Resources:
38
LoadBalancer:
39
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
40
Properties:
41
- # TODO: add a security group?
+ SecurityGroups:
42
+ - !Ref LoadBalancerSecurityGroup
43
Subnets:
44
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
45
- !ImportValue VPC-SubnetB
46
- !ImportValue VPC-SubnetC
47
Scheme: internet-facing
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
+
60
LoadBalancerListener:
61
Type: AWS::ElasticLoadBalancingV2::Listener
62
0 commit comments