Created
December 10, 2017 12:16
-
-
Save li0nel/17315307a72a8750fd5eb2b6715396cc to your computer and use it in GitHub Desktop.
ELB security group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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