Commit Graph

8 Commits

Author SHA1 Message Date
Johannes Würbach 285500ed2c
feat(aws): reduce auto-discovery API calls 2022-07-21 17:11:18 +02:00
David Morrison ad93c8ba91 log failure information 2022-03-03 10:41:55 -08:00
David Morrison 8d608ac03e check all scaling activities instead of just the last one 2022-03-02 13:02:24 -08:00
David Morrison aebd984e43 fix linting errors 2022-03-02 11:34:17 -08:00
David Morrison 933065db73 adding tests 2022-03-02 11:34:17 -08:00
David Morrison 4999f05f3d cache ASG InstanceTypes for AWS 2021-09-22 15:17:26 -07:00
Jay Pipes 54f3076b24 ensure valid AWS LaunchTemplate version
The LaunchTemplateSpecification.Version is a pointer to
string. When the pointer is nil, EC2 AutoScaling API considers the value
to be "$Default", however aws.StringValue(ltSpec.Version) will return an
empty string (which is not considered the same as "$Default" or a nil
string pointer. So, in order to not pass an empty string as the version
for the launch template when we communicate with the EC2 AutoScaling API
using the information in the launchTemplate, we store the string
"$Default" when the ltSpec.Version is a nil pointer.

Issue #1728
2019-09-25 09:52:40 -04:00
Johannes Würbach 0598749d76
AWS: Reduce amount of API calls
Instead of doing auto-discovery, nodes per ASG and target size per ASG separately, fetch all
of those ASG details in a single request on each Refresh() with maximum 10 seconds granularity.
2018-05-21 10:31:03 +02:00