Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-ec2: Support PlacementGroup in LaunchTemplate #33721

Open
1 of 2 tasks
clayrosenthal opened this issue Mar 10, 2025 · 1 comment · May be fixed by #33726
Open
1 of 2 tasks

aws-ec2: Support PlacementGroup in LaunchTemplate #33721

clayrosenthal opened this issue Mar 10, 2025 · 1 comment · May be fixed by #33726
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

Comments

@clayrosenthal
Copy link

Describe the feature

You should be able to pass a PlacementGroup construct to the LaunchTemplate 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 L2 LaunchTemplate then casting it as the L1 to edit the corresponding property.

Proposed Solution

Allow for an optional placementGroup prop that implements IPlacementGroup in LaunchTemplateProps

Other Information

The Instance construct already supports such a prop

Acknowledgements

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

CDK version used

2.178.2

Environment details (OS name and version, etc.)

macOS 15.3.1 (24D70)

@clayrosenthal clayrosenthal added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Mar 10, 2025
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Mar 10, 2025
@pahud
Copy link
Contributor

pahud commented Mar 11, 2025

Thank you. I've noticed you are having a PR WIP. We'll review your PR when it's ready.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants