ECS is a managed container service. To use the ECS cluster, you must first configure several resources in your AWS account. This guide provides instructions for how to spin up an ECS agent in a new VPC using CloudFormation.
You can use our CloudFormation template to quickly spin up the ECS agent stack. For more information, see the AWS documentation on CloudFormation.
The CloudFormation template in this guide sets up an ECS agent from scratch, creating a new VPC and ECS cluster for the agent to run in. The template code can be found here. The Advanced ECS Setup guide includes additional instructions for deploying a Dagster Cloud agent in an existing VPC.
Press the "Launch Stack" button below to install the CloudFormation stack in your AWS account.
Creating the CloudFormation stack may take a few minutes; refreshing the AWS console Stacks page will show its status.
After the CloudFormation template installs the stack, if you navigate to the Agents tab on the Status page in Dagster Cloud, you should now see one running agent.
If you set this agent up as part of the Dagster Cloud tutorial, the next step of the tutorial shows you how to add an example code location using your new agent.
To use your agent to load your own Dagster code, see the Adding Code to Dagster Cloud guide.
See Advanced ECS Setup for information about deploying the ECS Agent within an existing VPC.