-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] Instance creation and PlacementGroup options #11331
Comments
Placement groups are a Launch Template feature, are they not? |
In AWS::EC2::Instance there's a PlacementGroup property: And from AWS Console you can launch an EC2, specify the placementGroup without passing through a launchTemplate. |
You can do this like the following, but it would be nice to be able to specify it in the constructor.
|
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
fixed by #24775 |
I'm still not seeing a way to specify a placement group when launching an ec2 instance. Am I missing it? |
@rogerkenny we'll add that support for ec2.Instance from here #30292 |
For Python and Launch Template: launch_template = ec2.LaunchTemplate(...)
placement_group = ec2.CfnPlacementGroup(self, "my-placement-group", strategy="cluster")
launch_template.node.default_child.add_property_override("LaunchTemplateData.Placement.GroupName", placement_group.ref) |
When creating an EC2 instance (new ec2.Instance), it should be possible to specify a placement group where instance belongs.
The text was updated successfully, but these errors were encountered: