Skip to content

Instantly share code, notes, and snippets.

@williamhub
Created May 14, 2019 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save williamhub/88ae17ac51b4ef73d0b96a08ed754489 to your computer and use it in GitHub Desktop.
Save williamhub/88ae17ac51b4ef73d0b96a08ed754489 to your computer and use it in GitHub Desktop.
ec2 instance security group cloudformation example template
InstanceSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Allow traffic from the security group assigned to the load balancer
VpcId: !Ref Vpc
SecurityGroupIngress:
- SourceSecurityGroupId: !Ref PublicLoadBalancerSG
IpProtocol: -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment