Hi! I’ve set up an ECS agent (Prefect Cloud 1.3.0)...
# ask-community
d
Hi! I’ve set up an ECS agent (Prefect Cloud 1.3.0) using this guide (great guide BTW). We’re using env variables to configure the used docker container. The problem is - newly spawned tasks in ECS do not get configured variables, and I do not see a way to explicitly forward them in the code. Is there a secure way to propagate env to flow runs other than specifying env in ECSRun (causing configuration duplication)?
r
Hey Dmitrii! Are you able to share your ECSAgent and ECSRun config? If a flow run doesn't have a task definition being referenced in the ECSRun, it will take the ECSAgent task definition. https://docs-v1.prefect.io/api/latest/run_configs.html#ecsrun