Skip to content

Commit c74151f

Browse files
use main ELB Security Group
1 parent e805c4a commit c74151f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,13 @@ Resources:
3939
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
4040
Properties:
4141
SecurityGroups:
42-
- !Ref LoadBalancerSecurityGroup
42+
- !ImportValue VPC-ELBSecurityGroup
4343
Subnets:
4444
# TODO: This copies geocoder, but we should probably have a separate subnet for this service.
4545
- !ImportValue VPC-SubnetB
4646
- !ImportValue VPC-SubnetC
4747
Scheme: internet-facing
4848

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-
6049
LoadBalancerListener:
6150
Type: AWS::ElasticLoadBalancingV2::Listener
6251
Properties:

0 commit comments

Comments
 (0)