Jacob Goldberg
05/30/2023, 4:19 PM09:00:08.037 | ERROR | Flow run 'cobalt-ladybug' - Flow could not be retrieved from deployment.
Based on this recipe on github I saw that “with image-based infrastructure blocks…the image can serve as a fourth storage option…In practice, when creating a deployment with an image-based infrastructure block, you can omit the storage block and Prefect will assume your flow code is available in the image at runtime.”
I assume that when i run `prefect deploy`in the CLI, my flows will be bundles up and stored in the docker container, but i guess that is not the case. Can someone provide guidance? I attached my deployment.yaml and prefect.yaml files here to help debugalex
05/30/2023, 4:28 PMpull:
- prefect.projects.steps.set_working_directory:
directory: /opt/prefect/calval_etl
Let me know if that works for you!Jacob Goldberg
05/30/2023, 4:29 PMJacob Goldberg
05/30/2023, 4:43 PMalex
05/30/2023, 4:45 PMjob_variables
section in your `deployment.yaml`:
work_pool:
...
job_variables:
env:
MY_ENV_VAR: value
The job_variables
section allows you to override any piece of configuration that is set on the work pool that you’re using for your deployment.Jacob Goldberg
05/30/2023, 4:48 PMalex
05/30/2023, 4:52 PMwork_pool:
...
job_variables:
env:
AWS_ACCESS_KYE_ID: "{{ prefect.blocks.secret.aws-access-key-id }}"
AWS_SECRET_ACCESS_KEY: "{{ prefect.blocks.secret.aws-secret-access-key }}"
AWS_DEFAULT_REGION: us-east-1
Jacob Goldberg
05/30/2023, 4:53 PMalex
05/30/2023, 4:57 PMJacob Goldberg
05/30/2023, 4:59 PM