Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Tutorials for Amazon ECS

Focus mode
Tutorials for Amazon ECS - Amazon Elastic Container Service

The following tutorials show you how to perform common tasks when using Amazon ECS.

You can use any of the following tutorials to learn more about getting started with Amazon ECS.

Tutorial overview Learn more

Get started with Amazon ECS on Fargate.

Learn how to create an Amazon ECS Linux task for the Fargate launch type

Get started with Windows containers on Fargate.

Learn how to create an Amazon ECS Windows task for the Fargate launch type

Get started with Windows containers for the EC2 launch type.

Learn how to create an Amazon ECS Windows task for the EC2 launch type

You can use any of the following tutorials to deploy tasks on Amazon ECS using the AWS CLI

Tutorial overview Learn more

Create a Linux task for the Fargate launch type.

Creating an Amazon ECS Linux task for the Fargate launch type with the AWS CLI

Create a Windows task for the Fargate launch type.

Creating an Amazon ECS Windows task for the Fargate launch type with the AWS CLI

Create a Linux task for the EC2 launch type.

Creating an Amazon ECS task for the EC2 launch type with the AWS CLI

You can use any of the following tutorials to learn more about monitoring and logging.

Tutorial overview Learn more

Set up a simple Lambda function that listens for task events and writes them out to a CloudWatch Logs log stream.

Configuring Amazon ECS to listen for CloudWatch Events events

Configure an Amazon EventBridge event rule that only captures task events where the task has stopped running because one of its essential containers has terminated.

Sending Amazon Simple Notification Service alerts for Amazon ECS task stopped events

Concatenate log messages that originally belong to one context but were split across multiple records or log lines.

Concatenating multiline or stack-trace Amazon ECS log messages

Deploy Fluent Bit containers on their Windows instances running in Amazon ECS to stream logs generated by the Windows tasks to Amazon CloudWatch for centralized logging.

Deploying Fluent Bit on Amazon ECS Windows containers

You can use any of the following tutorials to learn more about how to use Active Directory authentication with group Managed Service Account on Amazon ECS.

Tutorial overview Learn more

Use group Managed Service Account with Linux containers on EC2.

Using gMSA for EC2 Linux containers on Amazon ECS

Use group Managed Service Account with Windows containers on EC2.

Learn how to use gMSAs for EC2 Windows containers for Amazon ECS

Use group Managed Service Account with Linux containers on Fargate.

Using gMSA for Linux containers on Fargate

Create a task that runs a Windows container that has credentials to access Active Directory with domainless group Managed Service Account.

Using Amazon ECS Windows containers with domainless gMSA using the AWS CLI
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.