Skip to content

Instantly share code, notes, and snippets.

@nmagee
Created November 7, 2017 16:37
Show Gist options
  • Save nmagee/94df292eba3142ed24206be5e9ae1d7a to your computer and use it in GitHub Desktop.
Save nmagee/94df292eba3142ed24206be5e9ae1d7a to your computer and use it in GitHub Desktop.
Stop one or more EC2 instances. Run this on your local workstation.
#!/bin/bash
# This can be one or more EC2 instance IDs, separated by a space. No commas.
instanceIds=''
aws ec2 stop-instances --instance-ids $instanceIds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment