Created
May 6, 2020 10:32
-
-
Save sk-t3ch/3ba29e1b206c92a1a9192e9685cdd2e4 to your computer and use it in GitHub Desktop.
Hello World Cluster CloudFormation - Application Load Balancer
This file contains 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
LoadBalancerSecGroup: | |
Type: AWS::EC2::SecurityGroup | |
Properties: | |
GroupDescription: Load balancer only allow http port traffic | |
VpcId: !ImportValue VPCID | |
SecurityGroupIngress: | |
CidrIp: 0.0.0.0/0 | |
FromPort: 80 | |
IpProtocol: TCP | |
ToPort: 80 | |
LoadBalancer: | |
Type: AWS::ElasticLoadBalancingV2::LoadBalancer | |
Properties: | |
SecurityGroups: | |
- !Ref LoadBalancerSecGroup | |
Subnets: | |
- !ImportValue PublicSubnetA | |
- !ImportValue PublicSubnetB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment