Skip to content

Instantly share code, notes, and snippets.

@matthias-chlechowitz
Forked from mince27/get-instance.sh
Created May 22, 2018 09:24
Show Gist options
  • Save matthias-chlechowitz/a5a7df1db76a3d5b53cbf6f3e096908c to your computer and use it in GitHub Desktop.
Save matthias-chlechowitz/a5a7df1db76a3d5b53cbf6f3e096908c to your computer and use it in GitHub Desktop.
AWS Lightsail get instance info
# Full description of instance
aws lightsail get-instance --instance-name 'LightsailDemo'
# Return only the IP
aws lightsail get-instance --instance-name 'LightsailDemo' --query 'instance.privateIpAddress' --output text
# Connect
ssh -i demo.key ec2-user@<IP_ADDRESS>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment