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): Missing instance type classes #20924

Closed
2 tasks
TokyoQ opened this issue Jun 30, 2022 · 6 comments · Fixed by #21590
Closed
2 tasks

(aws-ec2): Missing instance type classes #20924

TokyoQ opened this issue Jun 30, 2022 · 6 comments · Fixed by #21590
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Comments

@TokyoQ
Copy link

TokyoQ commented Jun 30, 2022

Describe the feature

The following instance types aren't currently supported:

  • m6gd
  • m6id
  • c7g
  • c6id
  • r6id
  • u-3tb1
  • p4de (still in preview)
  • p3dn
  • dl1
  • g3s

Use Case

We use some of the missing instance types, specifically ones with attached instance storage.

Proposed Solution

Add the missing types to the list.

Other Information

Taken list from https://aws.amazon.com/ec2/instance-types

Acknowledgements

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

CDK version used

2.29.1 (build c42e961)

Environment details (OS name and version, etc.)

MacOS

@TokyoQ TokyoQ added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 30, 2022
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Jun 30, 2022
@corymhall
Copy link
Contributor

@TokyoQ Thanks for bringing these up as missing! Until these are added to the InstanceClass enum,
they can be used by doing:

new InstanceType('m6gd.large');

This issue has been classified as p2. That means a workaround is available or it is deemed a nice-to-have feature. Given the amount of work there is to do and the relative priority of this issue, the CDK team is unlikely to address it. That does not mean the issue will never be fixed! If someone from the community submits a PR to fix this issue, and the PR is small and straightforward enough, and meets the quality bars to be reviewed and merged with little effort we will accept that PR. PRs that do not build or need complex or multiple rounds of reviews are unlikely to be merged and will be closed to keep our backlog manageable.

In the mean time, remember that you can always use the escape hatch (https://docs.aws.amazon.com/cdk/v2/guide/cfn_layer.html) mechanism to have fine control over the CloudFormation output you want. We will keep the issue open for discoverability, to collect upvotes, and to facilitate discussion around this topic.

We use +1s on this issue to help prioritize our work, and are happy to re-evaluate the prioritization of this issue based on community feedback. You can reach out to the cdk.dev community on Slack (https://cdk.dev/) to solicit support for reprioritization.

@corymhall corymhall added p2 effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jun 30, 2022
@corymhall corymhall removed their assignment Jun 30, 2022
@jumic
Copy link
Contributor

jumic commented Jul 3, 2022

The following instance type classes already exists, no action is necessary:

I will submit a PR for the following instance classes:

  • u-3tb1
  • m6id
  • c6id
  • r6id
  • p3dn
  • dl1
  • g3s

Open (because in preview) - must be added later:

  • p4de (still in preview)

mergify bot pushed a commit that referenced this issue Jul 6, 2022
This PR adds the following EC2 instance type classes:
- u-3tb1
- m6id
- c6id
- r6id
- p3dn
- dl1
- g3s

Requested in issue #20924.

Please add tags `pr-linter/exempt-readme` and `pr-linter/exempt-test`. I only added new enum values, therefore no readme changes and test cases should be required.

----

### All Submissions:

* [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
iliapolo pushed a commit that referenced this issue Jul 6, 2022
This PR adds the following EC2 instance type classes:
- u-3tb1
- m6id
- c6id
- r6id
- p3dn
- dl1
- g3s

Requested in issue #20924.

Please add tags `pr-linter/exempt-readme` and `pr-linter/exempt-test`. I only added new enum values, therefore no readme changes and test cases should be required.

----

### All Submissions:

* [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
daschaa pushed a commit to daschaa/aws-cdk that referenced this issue Jul 9, 2022
This PR adds the following EC2 instance type classes:
- u-3tb1
- m6id
- c6id
- r6id
- p3dn
- dl1
- g3s

Requested in issue aws#20924.

Please add tags `pr-linter/exempt-readme` and `pr-linter/exempt-test`. I only added new enum values, therefore no readme changes and test cases should be required.

----

### All Submissions:

* [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

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

daschaa commented Jul 27, 2022

@jumic Can this issue be closed for now? :)

@jumic
Copy link
Contributor

jumic commented Jul 27, 2022

@corymhall Instance type p4de from the initial list is still open because it is in developer preview. Should we keep this PR? Or should we close it? @TokyoQ Can open a new feature request when the instance type will be released.

@corymhall
Copy link
Contributor

@jumic I think I'm fine with adding instance types that are in developer preview. I think we can just note that as part of the docstring.

@mergify mergify bot closed this as completed in #21590 Aug 15, 2022
mergify bot pushed a commit that referenced this issue Aug 15, 2022
Add support for P4DE instances.

[Announcement](https://aws.amazon.com/about-aws/whats-new/2022/05/amazon-ec2-p4de-gpu-instances-ml-training-hpc/)

Closes #20924.

Note: This instance type is still in developer preview. As proposed in #20924 (comment), I described this restriction in the docstring.

Please add tags `pr-linter/exempt-readme` and `pr-linter/exempt-integ-test`.

----

### All Submissions:

* [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

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

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

josephedward pushed a commit to josephedward/aws-cdk that referenced this issue Aug 30, 2022
Add support for P4DE instances.

[Announcement](https://aws.amazon.com/about-aws/whats-new/2022/05/amazon-ec2-p4de-gpu-instances-ml-training-hpc/)

Closes aws#20924.

Note: This instance type is still in developer preview. As proposed in aws#20924 (comment), I described this restriction in the docstring.

Please add tags `pr-linter/exempt-readme` and `pr-linter/exempt-integ-test`.

----

### All Submissions:

* [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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/small Small work item – less than a day 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.

4 participants