Skip to content

Instantly share code, notes, and snippets.

@dengemann
Created April 27, 2016 19:19
Show Gist options
  • Save dengemann/3245552bcdbf7f8f2293abb96c2348f4 to your computer and use it in GitHub Desktop.
Save dengemann/3245552bcdbf7f8f2293abb96c2348f4 to your computer and use it in GitHub Desktop.
aws ec2 create-security-group --group-name "IPython" --description "Allow traffic for IPython notebooks" --vpc-id {my-region-vpc} --region {my-region}
{
"GroupId": "{my-security-group}"
}
aws ec2 authorize-security-group-ingress --group-id {my-security-group} --protocol tcp --port 22 --cidr 0.0.0.0/0 --region {my-region}
aws ec2 authorize-security-group-ingress --group-id {my-security-group} --protocol tcp --port 443 --cidr 0.0.0.0/0 --region {my-region}
aws ec2 authorize-security-group-ingress --group-id {my-security-group} --protocol tcp --port 8888 --cidr 0.0.0.0/0 --region {my-region}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment