Skip to content

Commit

Permalink
feat(autoscaling): add support for InstanceRequirements property (a…
Browse files Browse the repository at this point in the history
…ws#28464)

Closes aws#28393

> Basically
[LaunchTemplateOverrides](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_autoscaling.LaunchTemplateOverrides.html)
for L2 construct is missing the
[InstanceRequirements](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplateoverrides.html#cfn-autoscaling-autoscalinggroup-launchtemplateoverrides-instancerequirements)
attribute.

----

*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*

---------

Co-authored-by: Sumu Pitchayan <35242245+sumupitchayan@users.noreply.github.com>
  • Loading branch information
2 people authored and paulhcsun committed Jan 5, 2024
1 parent de255b4 commit ffe1dcf
Show file tree
Hide file tree
Showing 10 changed files with 483 additions and 174 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,58 @@
}
}
},
"AsgFromMipWithInstanceRequirementsASG8BFE597D": {
"Type": "AWS::AutoScaling::AutoScalingGroup",
"Properties": {
"DesiredCapacity": "5",
"MaxSize": "10",
"MinSize": "0",
"MixedInstancesPolicy": {
"LaunchTemplate": {
"LaunchTemplateSpecification": {
"LaunchTemplateId": {
"Ref": "MainLT4FC09097"
},
"Version": {
"Fn::GetAtt": [
"MainLT4FC09097",
"LatestVersionNumber"
]
}
},
"Overrides": [
{
"InstanceRequirements": {
"CpuManufacturers": [
"intel"
],
"MemoryMiB": {
"Min": 16384
},
"VCpuCount": {
"Max": 8,
"Min": 4
}
}
}
]
}
},
"VPCZoneIdentifier": [
{
"Ref": "VPCPrivateSubnet1Subnet8BCA10E0"
},
{
"Ref": "VPCPrivateSubnet2SubnetCFCDAA7A"
}
]
},
"UpdatePolicy": {
"AutoScalingScheduledAction": {
"IgnoreUnmodifiedGroupSizeProperties": true
}
}
},
"AsgWithGp3BlockdeviceInstanceSecurityGroup54D76206": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ffe1dcf

Please sign in to comment.