Creating a manually-provisioned Amazon Elastic Container Services agent#
This guide is applicable to Dagster Cloud.
In this guide, you'll manually set up and deploy an Amazon Elastic Container Service (ECS) agent. Amazon ECS agents are used to launch user code in ECS tasks.
This method of setting up an Amazon ECS agent is a good option if you're comfortable with infrastructure management and want to fully define your agent.
To successfully run your ECS agent, you'll need to have the following IAM roles in your AWS account:
Task execution IAM role - This role allows ECS to interact with AWS resources on your behalf, such as pulling an image from ECR or pushing logs to CloudWatch.
Amazon publishes a managed policy called AmazonECSTaskExecutionRolePolicy with the required permissions. Refer to the AWS docs for more info about creating this role.
Task IAM role - This role allows the containers running in the ECS task to interact with AWS.
When creating this role, include the permissions required to describe and launch ECS tasks. For example: