Last active
May 22, 2018 09:24
-
-
Save mince27/e27e6ed46955f0bdd937f4922915fdce to your computer and use it in GitHub Desktop.
AWS Lightsail get instance info
This file contains 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
# 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