Ray Myers
4ae9b0e253
Implement AutoScaling resume_processes and correct behavior of suspend_processes ( #4133 )
...
* Implement AutoScaling resume_processes and correct behavior of suspend_processes
2021-08-04 06:57:21 +01:00
Ray Myers
9bd38f8480
Add autoscaling delete_tags ( #4122 )
2021-08-03 08:00:26 +01:00
Gianluca Pacchiella
273d632515
Fix/autoscaling elb interaction ( #3757 )
...
* Add minimal failing test case.
* Improve ELB instance ids handling.
We need to handle the instances originated by an autoscaling group differently.
2021-04-30 09:29:20 +01:00
Brian Pandola
e8f1522d1a
Improve autoscaling:CreateLaunchConfiguration request validation ( #3687 )
...
AWS requires certain parameters to be mutually inclusive.
Moto wasn't doing anything with the InstanceId parameter, which is now made
clear with a TODO.
2021-02-14 11:38:03 +00:00
Brian Pandola
ae85c539fd
Remove boto
package dependency
...
The `boto` library (long ago superseded by `boto3`) has not had an official
release in over two years or even a commit in the last 18 months. Importing
the package (or indirectly importing it by via `moto`) generates a deprecation
warning. Additionally, an ever-increasing number of `moto` users who have
left `boto` behind for `boto3` are still being forced to install `boto`.
This commit vendors a very small subset of the `boto` library--only the code
required by `moto` to run--into the /packages subdirectory. A README file
is included explaining the origin of the files and a recommendation for how
they can be removed entirely in a future release.
NOTE: Users of `boto` will still be able to use `moto` after this is merged.
closes #2978
closes #3013
closes #3170
closes #3418
relates to #2950
2020-11-26 23:59:15 -08:00
Matěj Cepl
5697ff87a8
Back to Black
2020-11-10 14:12:38 +01:00
Kevin Frommelt
55b02c6ee9
Add support for Launch Templates in Auto Scaling Groups ( #3236 )
...
* Add support for Launch Templates in Auto Scaling Groups
* Use named parameters, simplify parameter validation
2020-08-26 15:15:07 +01:00
Adam Richie-Halford
9a9a1d8413
Decentralize cloudformation naming responsibilities ( #3201 )
...
* #3127 - Decentralize CF naming responsibilities
* Decentralize CloudFormation naming responsibilities
* Update URLs in cloudformation_resource_type functions
* Fix flake8 errors
* Black formatting
* Add a bunch of imports to populate CloudFormationModel.__subclasses__
* Add noqa to s3 models import statement in cloudformation/parsing.py
* Black formatting
* Remove debugging print statement
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2020-08-01 15:23:36 +01:00
Zach Brookler
31ce74a842
Fix autoscaling tags ( #3010 )
...
* ENH: Add unit test for propagation tags
* BUG: Add missing translation of boolean PropagateAtLaunch tag values to strings
* BUG: Should really be checking for "true" and not True
* CLN: Black formatting
2020-05-24 12:21:29 +01:00
Denver Janke
9618e29ba9
Always call update ELBs for ASGs ( #2980 )
2020-05-11 07:44:26 +01:00
DenverJ
d745dfd3d2
Implement enter_standby, exit_standby and terminate_instance_in_auto_scaling_group
2020-04-13 10:54:13 +10:00
DenverJ
965046aa39
Fix formatting
2020-04-12 17:08:40 +10:00
DenverJ
593e5dc86a
Add instance-id filter to describe_auto_scaling_instances
2020-04-12 13:44:16 +10:00
Asher Foa
96e5b1993d
Run black on moto & test directories.
2019-10-31 10:36:05 -07:00
Steve Pulec
7ec3d43e0c
Merge pull request #2319 from acsbendi/autoscaling-group-from-instance
...
Implemented creating Auto Scaling group from instance
2019-07-20 00:06:22 -04:00
Steve Pulec
e052219161
Merge pull request #2315 from bkovacki/asg_min_max_size_update_desired_capacity_change
...
Handle change of ASG desired capacity on min and max size update
2019-07-19 23:38:16 -04:00
acsbendi
19c9c59367
Implemented Auto Scaling groups recreate terminated instances.
2019-07-19 12:56:27 +02:00
acsbendi
e4374431d6
Fixed instance_id not set to a default value in create_auto_scaling_group.
2019-07-17 21:46:07 +02:00
acsbendi
4834fc41c6
Fixed a linting error.
2019-07-17 21:15:31 +02:00
acsbendi
c8abd43c88
Implemented creating autoscaling group from instance.
2019-07-17 20:58:23 +02:00
Berislav Kovacki
1b3157ced0
Handle change of ASG desired capacity on min and max size update
...
A change in UpdateAutoScalingGroup:
* if a value for MinSize is specified without specifying a value for
DesiredCapacity, and the new MinSize is larger than the current size of
the group, set the group's DesiredCapacity to the new MinSize value
* if a value for MaxSize is specified without specifying a value for
DesiredCapacity, and the new MaxSize is smaller than the current size of
the group, set the group's DesiredCapacity to the new MaxSize value
2019-07-16 09:12:03 +02:00
David
868d0107bf
Autoscaling instance azs ( #2030 )
...
* Add instance AZ support in autoscaling
* Resolve py36-py27 format string error in test_autoscaling
2019-05-25 11:18:16 +01:00
Ka Wai Wan
df2120f38c
Add instance protection support in autoscaling, with tests
2018-11-24 02:32:53 -08:00
Jim Shields
bfeea00774
Fix #1370 : Implement suspend_processes in AutoScaling service
2018-03-09 16:55:30 -05:00
captainkerk
f7d8e3beb1
flake8 fix
2017-12-27 20:22:26 +00:00
captainkerk
59cf81fd56
AWS API raises an exception if both AZ and VPCZoneIdentifier params are empty. mock that exception, fix
...
tests to follow that pattern.
2017-12-27 19:17:59 +00:00
captainkerk
64adbe5852
boto uses auto_scaling, not autoscaling
2017-11-12 16:15:21 +00:00
Jack Danger
8bf0ed697a
Merge pull request #1287 from captainkerk/autoscaling-update-action-fix
...
update_auto_scaling_group method incorrectly supports LoadBalancerNames
2017-10-23 09:42:19 -07:00
Jack Danger
aaa0202d08
Merge pull request #1285 from captainkerk/autoscaling-load-balancer-target-group-support
...
Add ELBv2 Support to Autoscaling Service
2017-10-23 09:41:52 -07:00
captainkerk
97ab15d883
boto3 update group method doesnt accept LoadBalancerNames
2017-10-21 22:10:36 +00:00
captainkerk
993b092083
add target_group support to autoscaling service
2017-10-21 17:29:22 +00:00
Paul Carleton
685e9163a8
Add set-instance-health support
2017-10-20 11:26:23 -07:00
Paul Carleton
21c3775cb1
Add health status to autoscaling instances
2017-10-20 11:26:23 -07:00
John Kerkstra
b8a0cfd6f7
filter out already related elbs to prevent duplicates ( #1270 )
2017-10-18 14:23:14 -07:00
John Kerkstra
b8bb6c2dcf
Fix bug with update_attached_elbs ( #1266 )
...
* fixed bug where we were using elb_backend.describe_load_balancers
incorrectly, returning all available load balancers when we wanted none.
* improve skip, clean up tests
2017-10-16 22:04:47 -07:00
John Kerkstra
0af3427c15
Add autoscaling load balancer methods ( #1265 )
...
* add attach_load_balancers, detach_load_balancers,
describe_load_balancers methods
* prefer using amzn_request_id decorator to generate unique request ids
2017-10-16 19:07:00 -07:00
John Kerkstra
5ef236e966
Add attach_ and detach_instances methods to autoscaling service ( #1264 )
...
* add detach_instances functionality to autoscaling service
* use ASG_NAME_TAG constant
* cleanup models method a bit, add mocked DetachInstancesResult to
response template
* add attach_instances method
2017-10-16 17:09:51 -07:00
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