aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

aws-autoscaling: support `defaultInstanceWarmup`

Open pb8o opened this issue 4 years ago • 7 comments

Describe the feature

Support defaultInstanceWarmup in the AutoScalingGroup L2 construct.

Currently it is not supporter and the docs state:

Not currently supported by CloudFormation.

Which is not the case anymore

Use Case

Right now we have to use the escape hatch.

const cfnASG = asg.node.defaultChild as autoscaling.CfnAutoScalingGroup;
cfnASG.defaultInstanceWarmup = 60;

Proposed Solution

Expose the feature through the L2 Construct.

Other Information

No response

Acknowledgements

  • [X] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CDK version used

2.45.0

Environment details (OS name and version, etc.)

Ubuntu 20.04

pb8o avatar Nov 30 '22 18:11 pb8o

Awesome! Thanks for your PR!!

pahud avatar Dec 01 '22 22:12 pahud

I don't see a PR for this? I'll pick this up if there isn't

HBobertz avatar Dec 02 '22 16:12 HBobertz

Yeah there isn't one. Thanks for picking it!

pb8o avatar Dec 02 '22 17:12 pb8o

Unsure if there is a better way to link this pr. But here it is: https://github.com/aws/aws-cdk/pull/23285

HBobertz avatar Dec 09 '22 17:12 HBobertz

Should this be closed? The linked PR has been merged but it looks like it didn't get auto-associated with this issue somehow @pahud @pb8o

atchla avatar Dec 27 '22 07:12 atchla

Yep. Thanks!

pb8o avatar Jan 05 '23 11:01 pb8o

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jan 05 '23 11:01 github-actions[bot]