Created
December 30, 2016 01:33
-
-
Save anonymous/48dada491d2d5db34856f51d0d03ac19 to your computer and use it in GitHub Desktop.
Useful AWS CLI Functions
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
function aws-start-instance() | |
{ | |
aws ec2 start-instances --instance-ids="$1" | |
} | |
function aws-stop-instance() | |
{ | |
aws ec2 stop-instances --instance-ids="$1" | |
} | |
function aws-list-instance() | |
{ | |
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId, State.Name, Placement.AvailabilityZone, PublicIpAddress]' --output table | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment