Skip to content

Commit

Permalink
making stuff reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed May 29, 2011
1 parent d1aafd1 commit 56fd29e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,2 +1 @@
credentials
*.priv
24 changes: 22 additions & 2 deletions Readme.md
@@ -1,6 +1,26 @@
A small script to get started with aws autoscaling, inspired by [Tehrani](http://mtehrani30.blogspot.com/2011/05/amazon-auto-scaling.html)

Updating
========
Setup
=====

- copy credentials to yourproject.credentials.priv
- copy settings to yourproject.settings.priv

Usage
=====

sh yourproject.settings.priv
# paste commands (one by one) as shown in initialize_autoscale.sh


Updating the project
====================

- Download [Amazon EC2 API tools](http://aws.amazon.com/developertools/2535) extract and move them to as-tools
- Download [Amazon Amazon CloudWatch API Tools](http://aws.amazon.com/developertools/2534) extract them and move them to cw-tools

Author
======
[Michael Grosser](http://grosser.it)<br/>
michael@grosser.it<br/>
Hereby placed under public domain, do what you want, just do not hold anyone accountable...
File renamed without changes.
8 changes: 4 additions & 4 deletions autoscale.sh → initialize_autoscale.sh
@@ -1,4 +1,4 @@
. settings.sh
sh "$1.settings.sh"

### Install

Expand Down Expand Up @@ -29,10 +29,10 @@ mon-put-metric-alarm MyLowCPUAlarm1 --comparison-operator LessThanThreshold --ev


### Delete everything:
as-update-auto-scaling-group $SG_NAME --min-size 0 --max-size 0 --region $REGION
# as-update-auto-scaling-group $SG_NAME --min-size 0 --max-size 0 --region $REGION

# -> terminate all instances

as-delete-launch-config $LC_NAME --region $REGION -f
as-delete-auto-scaling-group $SG_NAME --region $REGION -f
# as-delete-launch-config $LC_NAME --region $REGION -f
# as-delete-auto-scaling-group $SG_NAME --region $REGION -f

0 comments on commit 56fd29e

Please sign in to comment.