Created
September 10, 2017 14:45
-
-
Save lsauer/0b55a462a6275a0aed268d7a789b7e82 to your computer and use it in GitHub Desktop.
Amazon AWS Shut Down All EC2 Instances
This file contains hidden or 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
aws ec2 terminate-instances | |
--instance-ids | |
$( | |
aws ec2 describe-instances | |
| grep InstanceId | |
| awk {'print $2'} | |
| sed 's/[",]//g' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment