Created
May 6, 2014 04:38
-
-
Save iogi/a4f525ebfea05615851c to your computer and use it in GitHub Desktop.
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
#!/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