cloudfoundry-community-attic / aws-nat-bastion-bosh-cf

Set up a best practices Cloud Foundry with just a few commands.
2 stars 7 forks source link

Add Provider shutdown command #40

Closed 7hunderbird closed 8 years ago

7hunderbird commented 8 years ago

This adds the command which paves the way for a provider encapsulation we can re-use.

Essentially we want to make a command that is convenient and safe to terminate the servers currently running on EC2.

This is a first cut, we can add layers of control to it. The "meat" of the search is:

aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" | jq -c -r '.Reservations[] .Instances[] .InstanceId' > instance_list