Joey Allison
10/25/2023, 3:02 PMprefect and prefect_aws libraries in Python to create an "anonymous" ECSTask infra block which is used in the deployment via prefect.deployments.Deployments.build_from_flow. When I run the flow via "quick run" the run uses the infrastructure block/definition in the work pool instead of the deployment (of which there is none/minimal due to it being created by the worker). When I manually update the work pool configuration with the infra details (cluster name, image, etc). it springs to life and works as expected. Is there a way to have it utilize the deployment infra configuration instead or am I missing something (which is totally possible!)?alex
10/25/2023, 3:04 PMJoey Allison
10/25/2023, 3:05 PMJoey Allison
10/25/2023, 3:08 PMJoey Allison
10/25/2023, 3:08 PMalex
10/25/2023, 3:11 PMDeployment.build_from_flow, you can use infra_overrides to define infra details for your deployment (equivalent to job_variables in the new flow.deploy method). That will allow you to override any of the variables configured in your work pools base job template.Joey Allison
10/25/2023, 3:13 PM