Skip to content

Instantly share code, notes, and snippets.

@mince27
Last active May 22, 2018 09:24
Show Gist options
  • Save mince27/e27e6ed46955f0bdd937f4922915fdce to your computer and use it in GitHub Desktop.
Save mince27/e27e6ed46955f0bdd937f4922915fdce 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