Skip to content

Instantly share code, notes, and snippets.

@marcopgordillo
Created April 24, 2020 12:11
Show Gist options
  • Save marcopgordillo/06e739e169dbe70243c36f3425916b77 to your computer and use it in GitHub Desktop.
Save marcopgordillo/06e739e169dbe70243c36f3425916b77 to your computer and use it in GitHub Desktop.
curl -s http://169.254.169.254/latest/meta-data/public-ipv4
curl -s http://169.254.169.254/latest/meta-data/mac
curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/12:c1:2b:7c:ea:d9/security-group-ids
http://checkip.amazonaws.com/
aws ec2 authorize-security-group-ingress --group-id sg-02351687a9ab7c5ec --port 8080 --protocol tcp --cidr 24.98.171.4/32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment