Skip to content

Instantly share code, notes, and snippets.

@li0nel
Created December 10, 2017 12:16
Show Gist options
  • Save li0nel/17315307a72a8750fd5eb2b6715396cc to your computer and use it in GitHub Desktop.
Save li0nel/17315307a72a8750fd5eb2b6715396cc to your computer and use it in GitHub Desktop.
ELB security group
# This security group defines who/where is allowed to access the Application Load Balancer.
# By default, we've opened this up to the public internet (0.0.0.0/0) but can you restrict
# it further if you want.
LoadBalancerSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
VpcId: !Ref VPC
GroupDescription: Access to the load balancer that sits in front of ECS
SecurityGroupIngress:
# Allow access from anywhere to our ECS services
- CidrIp: 0.0.0.0/0
IpProtocol: -1
Tags:
- Key: Name
Value: !Sub ${EnvironmentName}-LoadBalancers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment