-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(batch): add ECS_AL2023_NVIDIA #36161
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This review is outdated)
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
@Sas-ry thanks for submitting the PR ;) hope the contribution team will give it a review soon |
| this.instanceTypes = props.instanceTypes ?? []; | ||
| this.instanceClasses = props.instanceClasses ?? []; | ||
| if (this.images?.find(image => image.imageType === EcsMachineImageType.ECS_AL2023) && | ||
| if (this.images?.find(image => image.imageType === EcsMachineImageType.ECS_AL2023 || image.imageType === EcsMachineImageType.ECS_AL2023_NVIDIA) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if( [ EcsMachineImageType.ECS_AL2023, EcsMachineImageType.ECS_AL2023_NVIDIA ].includes(image.imageType)) ...`There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@XaaXaaX
Thanks for your review comment!
I think your suggestion is better than the current code, so I’ve applied it.
Issue # (if applicable)
#35839
Reason for this change
As explained in #35839, Amazon Linux 2 will reach its end of life (EOL) at the end of June 2026. Therefore, we have added a new option, “ECS_AL2023_NVIDIA,” to enable the specification of Amazon Linux 2023.
Description of changes
This release adds support for ECS_AL2023_NVIDIA to AWS Batch Compute Environment, enabling the execution of GPU workloads on Amazon Linux 2023.
Describe any new or updated permissions being added
N/A - Supports ECS_AL2023_NVIDIA
Description of how you validated changes
Unit tests and integration tests have been updated, and it is now possible to verify that both pass.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license