Skip to content

Instantly share code, notes, and snippets.

@anamorph
Created January 6, 2019 08:15
Show Gist options
  • Save anamorph/93140391a0c2bd767e22b829f1a4fad9 to your computer and use it in GitHub Desktop.
Save anamorph/93140391a0c2bd767e22b829f1a4fad9 to your computer and use it in GitHub Desktop.
adds your /32 to your dev ec2 security group.
#!/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