Amrit Amar
11/18/2025, 5:55 AMexec /usr/bin/tini: exec format error I got the PREFECT in ASCII and then nothing which I imagine is because the Prefect Task/RunId is invalid? I'm not sure what to make of the entire thing and I am at a loss of what to do from here.Amrit Amar
11/18/2025, 5:58 AMname: ecs-worker-guide
pull:
- prefect.deployments.steps.set_working_directory:
directory: /opt/prefect/ecs-worker-guide
# build section allows you to manage and build docker images
build:
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
requires: prefect-docker>=0.3.1
image_name: <hidden>.<http://dkr.ecr.us-east-2.amazonaws.com/prefect-test-1|dkr.ecr.us-east-2.amazonaws.com/prefect-test-1>
tag: latest
dockerfile: auto
# push section allows you to manage if and how this project is uploaded to remote locations
push:
- prefect_docker.deployments.steps.push_docker_image:
requires: prefect-docker>=0.3.1
image_name: '{{ build_image.image_name }}'
tag: '{{ build_image.tag }}'
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: my_ecs_deployment
version:
tags: []
description:
entrypoint: flow.py:my_flow
parameters: {}
work_pool:
name: my-ecs-pool
work_queue_name:
job_variables:
image: '{{ build_image.image }}'
cluster: "my-ecs-cluster"
subnets: ["Hidden"]
security_groups: ["Hidden"]
execution_role_arn: "arn:aws:iam::<hidden>:role/PrefectECSRunnerTaskRole"
schedules: []
flow.py
from prefect import flow
from prefect.logging import get_run_logger
@flow
def my_flow():
logger = get_run_logger()
<http://logger.info|logger.info>("Hello from ECS!!")
if __name__ == "__main__":
my_flow()Amrit Amar
11/18/2025, 5:59 AMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by