# prefect-community

Dmitrii Egunov

08/03/2022, 11:43 PM
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)?

Rob Freedy

08/04/2022, 1:22 PM
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.