feat(batch): ephemeralStorage property on job definitions#25399
feat(batch): ephemeralStorage property on job definitions#25399mergify[bot] merged 31 commits intomainfrom
ephemeralStorage property on job definitions#25399Conversation
Signed-off-by: Sumu <sumughan@amazon.com>
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
Signed-off-by: Sumu <sumughan@amazon.com>
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
Signed-off-by: Sumu <sumughan@amazon.com>
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
comcalvi
left a comment
There was a problem hiding this comment.
just a rename and this is good to go
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
Show resolved
Hide resolved
kaizencc
left a comment
There was a problem hiding this comment.
Do we have any information on the min/max value that is allowed? Can we create some synth time checks for them?
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
ephemeralStorage propertyephemeralStorage property on job definitions
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
…n.test.ts Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
| if (props.ephemeralStorageSize!.toGibibytes() > 200) { | ||
| return ['Ephemeral Storage must be at most 200 GiB.']; | ||
| } else if (props.ephemeralStorageSize!.toGibibytes() < 21) { | ||
| return ['Ephemeral Storage must be minimum 21 GiB.']; |
There was a problem hiding this comment.
Take a look at how we structure our other error messages and see if you can come up with the best version here.
There was a problem hiding this comment.
Hello @sumupitchayan
Do you need some help to complete the PR ?
Looking at the review, this is the only comment that was not fixed.
Looking at ComputeEnvironments here an example of message could be:
ECS Fargate container '${id}' has 'ephemeralStorage' = ${props.ephemeralStorageSize} > 200 GiB; 'ephemeralStorage' cannot be greater than 200 GiB
Sorry in advance for direct ping, but it is about a week without any change and we're looking actively on this fix as it would avoid us stepping back from alpha package ...
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
Show resolved
Hide resolved
…csContainerDefinitionProps only Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
… of node.addValidation Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
comcalvi
left a comment
There was a problem hiding this comment.
Looks pretty good, some minor comments.
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Sumu <sumughan@amazon.com>
comcalvi
left a comment
There was a problem hiding this comment.
minor formatting, but this is looking good!
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Signed-off-by: Sumu <sumughan@amazon.com>
comcalvi
left a comment
There was a problem hiding this comment.
lgtm! Nice work on this fix 🙂
kaizencc
left a comment
There was a problem hiding this comment.
I have a few minor comments too 🫣
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Sumu <sumughan@amazon.com>
|
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 CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
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). |
Closes #25393.
Adds missing
ephemeralStorageproperty toEcsFargateContainerDefinitionandEcsFargateContainerDefinitionPropsalong with a unit test.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license