Hey All, I am using ECS Task to run the flow. In ...
# ask-community
r
Hey All, I am using ECS Task to run the flow. In the “Deployment” I have infrastructure overrides (defined in job_variable in prefect.yaml) defined the environment variable as below to apply to the ECS task running the flow. However the environment variable is not set on the ECS task running the flow, is there anything I am doing wrong here?
1
a
Hey @ravi! You can use the
env
infrastructure override to set environment variables inside your ECS task.
env
accepts a dictionary for environment variables and the worker will alter the format to work with ECS before submitting a task definition.
🙌 1
r
Thanks @alex that worked. Forgive my ignorance but could you please point me where I can find list of other possible things “infrastructure override” can accept?
a
You can provide a value for any
variables
exposed in your work pool’s base job template, so what’s possible will vary depending on the work pool you’re using.
🙌 1