-
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
ec2: Need G6 EC2 Instance support #30683
ec2: Need G6 EC2 Instance support #30683
Comments
Per Amazon EC2 instance types, @CambioML Thanks for bringing this issue into our attention. Feel free to contribute PR to add G6 EC2 instance type. |
Before we have a PR to natively support that, you can override the InstanceType like this: // create a dummy ec2 instance
const instance = new ec2.Instance(this, 'Instance', {
machineImage: ec2.MachineImage.latestAmazonLinux2023(),
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.SMALL),
vpc: ec2.Vpc.fromLookup(this, 'Vpc', { isDefault: true }),
});
(instance.node.defaultChild as ec2.CfnInstance).addPropertyOverride('InstanceType', 'g6.xlarge'); verify:
And you will need to specify appropriate AMI as well. Let me know if it works for you and we welcome any pull requests for this. |
### Issue # (if applicable) Closes #30683 ### Reason for this change G6 instances are not yet supported by CDK L2 ### Description of changes Added G6 instance class ### Description of how you validated changes Added `g6` to existing unit test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the feature
Need G6 EC2 Instance support
Use Case
Need to provision ECS EC2 while using G6 instance
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
^2.1.0
Environment details (OS name and version, etc.)
mac 14.5
The text was updated successfully, but these errors were encountered: