aws-ec2: Support PlacementGroup in LaunchTemplate #33721
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
You should be able to pass a
PlacementGroup
construct to theLaunchTemplate
construct to make the instances launched with that template use that placement group.Use Case
When you define a PlacementGroup and want to create a LaunchTemplate that uses it, you have to use the L1
CfnLaunchTemplate
or do some weird half and half of creating an L2LaunchTemplate
then casting it as the L1 to edit the corresponding property.Proposed Solution
Allow for an optional
placementGroup
prop that implementsIPlacementGroup
inLaunchTemplateProps
Other Information
The
Instance
construct already supports such a propAcknowledgements
CDK version used
2.178.2
Environment details (OS name and version, etc.)
macOS 15.3.1 (24D70)
The text was updated successfully, but these errors were encountered: