Commit Graph

41 Commits

Author SHA1 Message Date
William Richard
c5ce2848be
Boto3 and cloudformation have different keys for auto scaling tags - handle that gracefully 2017-06-21 15:59:03 -04:00
Paul Carleton
5429f3590e Fix linting problem 2017-06-09 15:22:39 -07:00
Paul Carleton
d94d7f6962 Add propagated tags and ASG name tag to asg instances 2017-06-09 12:27:49 -07:00
Steve Pulec
0adebeed24 Merge #913. 2017-05-10 21:58:42 -04:00
Steve Pulec
6d422d1f37 Add BaseModel to all models. 2017-03-11 23:41:12 -05:00
Steve Pulec
3b4ef2cf15 Merge in master. 2017-03-05 09:58:39 -05:00
William Richard
f46a24180f Cast desired capacity for cloudformation asg to int (#846)
Cloudformation passes MaxSize, MinSize and DesiredCapacity as strings, but
we want to store them as ints.  Also includes tests of this fix, to help
avoid regression.
2017-03-04 22:51:01 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Jia Chen
2a02259a3c Adding PolicyType to scaling policy and implementing filtering in describe_policies (#797)
* Adding PolicyType to FakeScalingPolicy

* Implement filtering for AutoScalingBackend.describe_policies(...)

* Unit test for describe_policies fuction in autoscaling
2017-01-11 20:40:57 -05:00
Jesse Chahal
1d2042876e added update_and_create_tags() to autoscale groups 2016-06-17 18:51:28 -07:00
Jesse Chahal
0efea0af2b Implemented autoscale method create_or_update_tags 2016-06-16 17:24:50 -07:00
Marco Rucci
a330b1d346 ELBs can now be deleted before their autoscaling groups.
Also, fix name clash in autoscaling tests.
2016-05-15 21:17:59 +02:00
Steve Pulec
8ce2d3c8bf Cleanup updating ASGs. Closes #603. 2016-05-04 22:10:11 -04:00
Steve Pulec
c308ef4364 Fix update_auto_scaling_group. Closes #596. 2016-05-01 22:34:16 -04:00
Steve Pulec
a600deb96a Fix merge conflicts and add EC2 Instance delete. Closes #576. 2016-04-28 09:22:31 -04:00
Andrew Garrett
39d9fbcd02 Added resource deletion upon stack deletion
Only implemented for ASGs and LCs since they're all we cared about for
our particular problem. It should be easy to follow this pattern for
other resource types, though.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:29 +00:00
Andrew Garrett
99af8bdb79 Convert VPCZoneIdentifier list in template resource to csv
Although the boto docs say to use a csv, CloudFormation templates use a
list instead:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#aws-properties-as-group-prop

Without this change, templates specifying VPCZoneIdentifier will break
as the identifier will be the repr of the list.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:27 +00:00
kevgliss
3ce6627826 adding additional params 2016-02-03 15:38:58 -08:00
Steve Pulec
fc0fb0d40e Fix default ASG health check period. 2016-01-08 16:56:10 -05:00
Marco Rucci
c8b7511341 Manage instances of ELBs attached to autoscaling group. 2015-12-09 21:40:48 +01:00
milesoc
b3096af098 Set tags in response, fix tests for tags 2015-10-06 18:07:58 +00:00
Miles O'Connell
3c38a551b2 Adding tags to AutoScalingGroups 2015-10-06 09:21:26 -07:00
Steve Pulec
df6ff57d24 Fix ASG instance_type. 2015-08-03 21:52:43 -04:00
Steve Pulec
c45968b79f Template in the ASG instance lifecycle states. 2015-07-13 10:47:45 -04:00
Chris Henry
4626fc0fea cast to int when doing math. 2015-03-21 21:54:25 -04:00
Steve Pulec
1f8253a1a1 Cleanup the default region backends. 2014-11-15 14:21:58 -05:00
Steve Pulec
bd847bd941 Cleanup multi-region support for ELB, SQS, Cloudformation, EC2, Autoscaling. 2014-11-15 13:34:52 -05:00
Steve Pulec
c77207a8b8 More flake8. 2014-11-15 09:53:45 -05:00
Marco Rucci
53a11c18c1 Fix bug with autoscaling in non-default region.
The bug appeared when using a region different than 'us-east-1'
and caused KeyError when accessing launch_configurations.

Rename the global autoscaling backend to reduce chances of similar naming issues.
2014-11-07 22:13:00 +01:00
David Baumgold
eedb4c4b73 Support Python 3 using six 2014-08-28 10:57:43 -04:00
David Baumgold
4201e6b430 from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
Hugo Lopes Tavares
7e69c69ae0 Add multi-region support to Autoscaling 2014-08-26 17:56:56 -04:00
Andrew Gross
dbe17d059f Fix some merge issues, add block device parsing 2014-04-25 15:44:55 -04:00
Andrew Gross
a0e48a6cf5 [Block Device] Add block device mapping to launch config backend 2014-04-24 16:49:16 -04:00
Steve Pulec
ef876dd27e Fix merge conflicts. Add basic cloudformation support. Closes #111. 2014-03-27 19:12:53 -04:00
Steve Pulec
140f1c2000 Add ability to launch instances with security groups. 2014-03-22 14:02:47 -04:00
Hugo Lopes Tavares
8b6facf133 Add support to launch configuration AssociatePublicIpAddress parameter 2014-03-04 17:39:19 -05:00
Steve Pulec
c1f224954e Cleanup some style 2013-12-29 08:59:07 -05:00
Steve Pulec
afad0bed14 Add ebs_optimized parameter to launch configurations 2013-09-10 16:54:57 -04:00
Steve Pulec
161a5744d1 Add more autoscaling params 2013-08-03 17:09:36 -04:00
Steve Pulec
d57157e749 Merge in autoscaling 2013-07-27 16:24:38 -04:00