Commit Graph

101 Commits

Author SHA1 Message Date
Anuj Biyani
02f31ef263 require instances to be inservice for a period of time before considering them healthy 2013-06-04 18:09:50 -07:00
Anuj Biyani
a67f5c2494 use constants instead of instance variables for a couple things 2013-06-04 16:17:35 -07:00
Anuj Biyani
b6af069025 tweak formatting of help 2013-06-04 16:04:47 -07:00
Anuj Biyani
fc124c21bf fix some print statements 2013-06-04 15:58:50 -07:00
Anuj Biyani
1463d49e9a deregister the ec2 instance, not the as instance 2013-06-04 15:52:38 -07:00
Anuj Biyani
f91dbe1c94 use AutoScaling::Instance instead of EC2::Instance 2013-06-04 15:39:56 -07:00
Anuj Biyani
f6f07ec0fc wrap AwsHaRelease class in AwsMissingTools module 2013-06-04 15:20:51 -07:00
Anuj Biyani
29aeb75ca3 use ruby optionparser instead of trollop
remove cucumber
2013-06-04 15:18:18 -07:00
Anuj Biyani
601f6087ec check that number of instances in load balancer matches desired capacity 2013-06-04 15:16:51 -07:00
Anuj Biyani
0554f6eb74 fix some output 2013-06-04 11:26:03 -07:00
Anuj Biyani
f4aba7d829 ignore .gem files 2013-06-04 11:20:05 -07:00
Anuj Biyani
2a8f449cc7 move require lines around so they make more sense 2013-06-04 11:18:22 -07:00
Anuj Biyani
5f4b9b59bf ensure that necessary autoscaling processes are not suspended 2013-06-03 19:31:10 -07:00
Anuj Biyani
8c24fa8dbf add print statements so user is aware of what is happening 2013-06-03 19:19:38 -07:00
Anuj Biyani
07fc0390f7 timeout if cycling a server takes longer than inservice_time_allowed 2013-06-03 18:51:01 -07:00
Anuj Biyani
55e60a989e rearrange and refactor specs to make more sense 2013-06-03 18:07:10 -07:00
Anuj Biyani
b463901f98 loop through each instance, wait for a new one to come up, then deregister and terminate the old one 2013-06-03 16:19:03 -07:00
Anuj Biyani
9273f748c2 determine if instances are InService across a given load balancer and array of load balancers 2013-05-31 18:20:09 -07:00
Anuj Biyani
20b59fb132 increment the desired capacity 2013-05-31 15:30:14 -07:00
Anuj Biyani
67c907aa04 update max size if equal to desired capacity 2013-05-31 15:16:41 -07:00
Anuj Biyani
6f74b5c511 suspend certain autoscaling processes before cycling servers 2013-05-31 15:05:16 -07:00
Anuj Biyani
4f466e1a19 on init, connect to AWS and check for the AS group 2013-05-31 13:08:23 -07:00
Anuj Biyani
2bdaca25bb make aws-missing-tools a gem 2013-05-30 16:19:08 -07:00
Anuj Biyani
e35a0e1a8d aws access key and secret key default to environment variables 2013-05-30 14:10:42 -07:00
Anuj Biyani
179a788fe3 start a ruby version of aws-ha-release
- use aruba to test command line options
  - use rspec to unit test
2013-05-30 14:08:54 -07:00
Colin Johnson
64e840e711 Merge pull request #31 from dfevre/master
aws-ha-release doesn't pass region to as-suspend-processes or as-resume-processes.
2013-05-27 09:03:43 -07:00
David Fevre
586b1d8874 Added region to as-suspend-process and as-resume-process calls to aws-ha-release for #30. 2013-05-27 19:25:23 +10:00
Colin Johnson
32509b24c0 Merge branch 'master' of https://github.com/colinbjohnson/aws-missing-tools 2013-05-06 04:16:37 +00:00
Colin Johnson
178496f629 updating of error text and readme.md file. 2013-05-06 04:16:10 +00:00
Colin Johnson
eaa34dbb30 Merge pull request #26 from Lytro/suspend_certain_processes
aws-ha-release Suspend certain processes
2013-05-04 13:45:57 -07:00
Colin Johnson
6bd5066efd Merge branch 'master' of https://github.com/colinbjohnson/aws-missing-tools 2013-05-04 19:33:56 +00:00
Colin Johnson
32197fb049 update of ec2-cost-calculate-ruby Cost Map to reflect prices as of 2013-05-04 2013-05-04 19:33:31 +00:00
Anuj Biyani
45b2394a91 fix bug where only last load balancer mattered 2013-04-17 14:23:04 -07:00
Anuj Biyani
b2ecd4f19f don't return to defaults if aws-ha-release fails because we might kill healthy instances and leave unhealthy ones 2013-04-17 13:27:36 -07:00
Anuj Biyani
1a9c38f975 DRY code for returning settings to default 2013-04-16 19:29:03 -07:00
Anuj Biyani
4214577369 use an integer instead of a boolean 2013-04-16 19:25:58 -07:00
Anuj Biyani
5feaf83e57 allow for multiple load balancers 2013-04-16 19:00:20 -07:00
Anuj Biyani
2b0693803d resume as processes if aws-ha-release fails 2013-04-16 18:35:42 -07:00
Anuj Biyani
a37bdd5c26 fix auto scaling processes necessary for aws-ha-release 2013-04-16 18:23:47 -07:00
Anuj Biyani
199c39bce9 suspend processes that interfere with cycling servers 2013-04-16 18:19:07 -07:00
Colin Johnson
9ba549ad00 Merge pull request #25 from davestern/copy-volume-regional
Copy Snapshots to different regions
2013-04-10 13:12:10 -07:00
Dave Stern
b05ddd21c4 Region Copy: Updated README with new features 2013-04-10 15:20:11 -04:00
Dave Stern
27f88ef5a1 Region Copy: Modified prerequisite_check for conditional usage 2013-04-10 15:06:05 -04:00
Dave Stern
c63fc636e6 Region Copy: Mac cut doesn't have --output-delimiter, use tr instead 2013-04-10 14:51:55 -04:00
Dave Stern
09cee91c56 Region Copy: -g and -d options to tag and initiate region copies
-g tested with new backups using:

bash ec2-automate-backup.sh -v 'vol-8a1a43f6 vol-2a78d459' -g 'us-west-1 us-west-2' -n

-d tested with various options and repeated calls to test
idempotent copies:

bash ec2-automate-backup.sh -s regioncopy -d 'us-west-1'
bash ec2-automate-backup.sh -s regioncopy -d 'us-west-1'
bash ec2-automate-backup.sh -s regioncopy -d 'us-west-1 us-west-2'
bash ec2-automate-backup.sh -s regioncopy -d 'us-west-2'

etc.
2013-04-10 14:36:13 -04:00
Colin Johnson
34def1a7a1 Merge pull request #24 from eyesis/patch-1
Update ec2ab - IAM User Required Permissions.json
2013-04-10 07:23:11 -07:00
Mike
917b3c8aa1 Update ec2ab - IAM User Required Permissions.json
Spelling mistake. Included invalid action; "Deletenapshot". Already correctly defined as "DeleteSnapshot"
2013-04-10 08:19:33 -05:00
Colin Johnson
1d9540963e Removing typo - had duplicate curl command. 2013-04-03 22:53:02 +00:00
Colin Johnson
9c69efc5e3 Update ec2-write-memory-metrics.sh
Removing typo - had duplicate curl command.
2013-04-03 22:52:00 +00:00
Colin Johnson
ad75ad4bc2 Merge pull request #22 from torgeilo/master
The max size field is nr 9, not 10 ;)
2013-02-19 09:01:23 -08:00