Skip to content

Instantly share code, notes, and snippets.

@reizist
Last active March 31, 2018 08:03
Show Gist options
  • Save reizist/12f4ad87141d535dea75 to your computer and use it in GitHub Desktop.
Save reizist/12f4ad87141d535dea75 to your computer and use it in GitHub Desktop.
security_group.yml
AWSTemplateFormatVersion: 2010-09-09
Resources:
Basic:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Enable SSH access via port 22 and 80
SecurityGroupIngress:
- IpProtocol: tcp
CidrIp: 0.0.0.0/0
FromPort: 22
ToPort: 22
- IpProtocol: tcp
CidrIp: 0.0.0.0/0
FromPort: 80
ToPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment