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

chore(ec2): dl2q instance type, IntanceType fixes #29481

Merged
merged 5 commits into from
Mar 15, 2024

Conversation

nmussy
Copy link
Contributor

@nmussy nmussy commented Mar 14, 2024

Issue # (if applicable)

None

Reason for this change

Follow up to #29427. Added a missing instance type, and minor fixes to the IntanceType class

Description of changes

I'd missed an instance type, dl2q, which was neither in us-east-1 or us-east-2, but in us-west-2.

I've also added a couple of missing symbolic names, as well as fixed some differing comments between the key and its symbolic value (e.g. M3 and STANDARD3)

I also re-ordered a couple of enum values, when the symbolic value was separated from its match

Description of how you validated changes

Compared the CDK to the SDK to find the missing instance. Programmatically iterated over the comments of IntanceType to make sure the comments of the symbolic keys matched the one below.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team March 14, 2024 11:17
@github-actions github-actions bot added p2 distinguished-contributor [Pilot] contributed 50+ PRs to the CDK labels Mar 14, 2024
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Mar 14, 2024
Copy link
Contributor

@paulhcsun paulhcsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple questions.

Comment on lines 620 to +622
* High performance computing powered by AWS Trainium
*/
TRN1 = 'trn1',
TRAINING_ACCELERATOR1 = 'training-accelerator1',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these descriptions pulled from? Some of them seem mismatched after the changes, or were they incorrect before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neither trn1 nor trn1n had a symbolic "alias" given to them when they were added, unlike every other instance class. I added one, didn't get it from anywhere really, looked up the AWS docs and tried to match the other's.

Comment on lines +635 to +637
* Network-optimized high performance computing powered by AWS Trainium
*/
TRN1N = 'trn1n',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description for this has changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the trn1n description didn't have the network optimization discriminator, both trn1* had the same description:

/**
* High performance computing powered by AWS Trainium
*/
TRN1 = 'trn1',
/**
* High performance computing powered by AWS Trainium
*/
TRN1N = 'trn1n',

Copy link
Contributor

@paulhcsun paulhcsun Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, thanks for clarifying. Waiting for one other PR to merge in and will approve this after that.

paulhcsun
paulhcsun previously approved these changes Mar 15, 2024
Copy link
Contributor

mergify bot commented Mar 15, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Mar 15, 2024
Copy link
Contributor

mergify bot commented Mar 15, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

Copy link
Contributor

mergify bot commented Mar 15, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot dismissed paulhcsun’s stale review March 15, 2024 21:52

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 055d1f0
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

mergify bot commented Mar 15, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 98e9fbe into aws:main Mar 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants