Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Amazon AWS Shut Down All EC2 Instances
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
You can’t perform that action at this time.