From 30e358fb9e0f617e13fd4eda5ccbc7b5572cb6a8 Mon Sep 17 00:00:00 2001 From: kevingrismore <146098880+kevingrismore@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:55:43 -0500 Subject: [PATCH] ecs guide fixes and clarifications (#329) Co-authored-by: nate nowack --- docs/ecs_guide.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/ecs_guide.md b/docs/ecs_guide.md index 33bcfccb..5ac31ae2 100644 --- a/docs/ecs_guide.md +++ b/docs/ecs_guide.md @@ -182,22 +182,14 @@ To create an [IAM role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_role "containerDefinitions": [ { "name": "prefect-worker", - "image": "prefecthq/prefect", + "image": "prefecthq/prefect:2-latest", "cpu": 512, "memory": 1024, "essential": true, "command": [ - "pip", - "install", - "prefect-aws", - "&&", - "prefect", - "worker", - "start", - "--pool", - "my-ecs-pool", - "--type", - "ecs" + "/bin/sh", + "-c", + "pip install prefect-aws && prefect worker start --pool my-ecs-pool --type ecs" ], "environment": [ { @@ -218,7 +210,7 @@ To create an [IAM role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_role - For the `PREFECT_API_KEY`, individuals on the organization tier can create a [service account](https://docs.prefect.io/latest/cloud/users/service-accounts/) for the worker. If on a personal tier, you can pass a user’s API key. - - Replace `` with the ARN of the IAM role you created in Step 1. + - Replace both instances of `` with the ARN of the IAM role you created in Step 2. - Notice that the CPU and Memory allocations are relatively small. The worker's main responsibility is to submit work through API calls to AWS, _not_ to execute your Prefect flow code.