Created
January 6, 2019 08:15
-
-
Save anamorph/93140391a0c2bd767e22b829f1a4fad9 to your computer and use it in GitHub Desktop.
adds your /32 to your dev ec2 security group.
This file contains hidden or 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/bash | |
export MY_32CIDR=$(curl -s v4.ifconfig.co)/32 | |
aws ec2 authorize-security-group-ingress --group-id sg-{yoursgid} --protocol tcp --port 22 --cidr $MY_32CIDR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment