(aws-ecs): The sum of all container cpu values should be lower than the value of the task cpu #24629
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Hi team.
I would like to add a validation for cpu in ContainerDefinition.
In ECS, the total cpu of each ContainerDefinition cannot exceed the CPU defined in the TaskDefinition.
Currently, if write such code, it will not be validated and will be deployed to CloudFormation with an error.
Use Case
Allow errors to be detected at the Synth stage before the CDK is deployed.
Proposed Solution
Validation is performed when a container is added using the addContainer method.
Other Information
No response
Acknowledgements
CDK version used
v2.69.0
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: