AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

TaskDefinition

Defines how containers run in ECS

Import

import { TaskDefinition } from 'aws-cdk-lib/aws-ecs';

Or use the module namespace:

import * as ecs from 'aws-cdk-lib/aws-ecs';
// ecs.TaskDefinition

Underlying CloudFormation Resources

This L2 construct creates and manages the following CloudFormation resources.

Get the Amazon ECS Cheat Sheet

Everything you need to know about Amazon ECS on one page. HD quality, print-friendly.

Download Free Infographic