datamongus
07/15/2024, 10:07 PMMarvin
07/15/2024, 10:07 PMprefect.yaml
file, you can define the pull
section within the deployment configuration. Here’s a concise guide based on the documentation and common patterns:
1. Define your specific pull steps in the prefect.yaml
file under the deployments
section.
2. Reference any necessary blocks or credentials as needed.
Below is an example illustrating how to structure this in the prefect.yaml
file:
yaml
# File for configuring project / deployment build, push and pull steps
# Generic metadata about this project
name: my_project
prefect-version: 2.11.0
deployments:
- name: my_deployment
entrypoint: my_flow.py:my_function
pull:
- prefect_aws.deployments.steps.pull_from_s3:
requires: prefect-aws>=0.3.0
bucket: my-bucket
folder: my-folder
credentials: "{{ prefect.blocks.aws-credentials.my-credentials }}"
# Additional deployment configuration...
### Explanation:
- deployments: Defines your deployments.
- name: Name of your deployment.
- entrypoint: Specifies the flow and function to execute.
- pull: Defines the pull steps to use for this deployment. In this example, it uses pull_from_s3
with AWS credentials.
For more details, you can refer to the following sources:
- Guide on configuring deployments: Deployments Guide
- Example issue with a similar context: GitHub Issue on Deployment pull steps
If you have any specific step or block that needs to be referenced differently, ensure to replace placeholders with your actual setup or requirements.