-
-
Save matthias-chlechowitz/a5a7df1db76a3d5b53cbf6f3e096908c 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