Eric
09/25/2023, 6:02 PMprefect.yaml
file, is this the right way to supply my tasks with the necessary env vars?
definitions:
tags: &common_tags
- "feedback-insight"
- "demo"
work_pool: &common_work_pool
name: "demo-work-pool"
job_variables:
image: $BACKEND_IMAGE_URL
ENV_VAR_1: $ENV_VAR_1
ENV_VAR_2: $ENV_VAR_2
Seems strange that the docker image would be grouped with the env vars supplied to the pod / execution envalex
09/25/2023, 6:04 PMenv
variable in the default base job template, so you can provide environment variables like this:
work_pool: &common_work_pool
name: "demo-work-pool"
job_variables:
image: $BACKEND_IMAGE_URL
env:
ENV_VAR_1: $ENV_VAR_1
ENV_VAR_2: $ENV_VAR_2
Eric
09/25/2023, 6:05 PMalex
09/25/2023, 6:08 PMjob_variables.image
and your Kubernetes cluster has the correct permissions to pull images from ECR, your flow runs should execute correctly.Eric
09/25/2023, 6:09 PMalex
09/25/2023, 6:12 PMEric
09/25/2023, 6:13 PM