(aws-ecs): Add support for ElasticInferenceAccelerators in ECS Task definitions #12460
Closed
2 tasks
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
effort/small
Small work item – less than a day of effort
feature/coverage-gap
Gaps in CloudFormation coverage by L2 constructs
feature-request
A feature should be added or improved.
p2
As I see it, currently the only way to create a task definition with elastic inference accelerators attached is by using the
CfnTaskDefinition
class directly, instead of the regular CDK construct (Ec2TaskDefinition).Use Case
Use the Elastic Inference feature with ECS tasks through CDK.
Proposed solution
Add a
inferenceAccelerators
property to the Ec2TaskDefinition constructor typed as a list ofInferenceAccelerator
(or similar) struct class instances to pass the configuration parameters for each accelerator.Once Fargate supports EIA, the property should also be added to the
TaskDefinition
andFargateTaskDefinition
constructs.This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: