Skip to content

Instantly share code, notes, and snippets.

@iogi
Created May 6, 2014 04:38
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 iogi/a4f525ebfea05615851c to your computer and use it in GitHub Desktop.
Save iogi/a4f525ebfea05615851c to your computer and use it in GitHub Desktop.
#!/bin/sh
VPC_ID="vpc-xxxxxxxx"
# ELB
SGID=`aws ec2 create-security-group --group-name elb --description elb --vpc-id $VPC_ID --output text --query GroupId`
aws ec2 authorize-security-group-ingress --group-id $SGID --protocol tcp --port 80 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id $SGID --protocol tcp --port 443 --cidr 0.0.0.0/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment