AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

FargateTaskDefinition

A task definition optimized for Fargate launch type

Import

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

Or use the module namespace:

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

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