Javier Ochoa
06/29/2023, 8:10 PMNate
06/29/2023, 10:08 PMprefect init
, select s3
and follow the CLI wizard to specify your bucket
which will automatically configure your prefect.yaml
with:
• a push
step (how your flow code gets uploaded at deployment time)
• a pull
step (how your worker pulls the code from storage at runtime)
anything you don't want to upload you can specify in the .prefectignore
file generated with prefect init
if you need to specify credentials from an AwsCredentials block, you can like this in the prefect.yaml
manually like this
push:
- prefect_aws.deployments.steps.push_to_s3:
requires: prefect-aws>=0.3.0
bucket: my-bucket
folder: project-name
credentials: "{{ prefect.blocks.aws-credentials.my-credentials-block }}"
let us know if you have any questions!Nate
06/29/2023, 10:09 PMprefect deployment build ... -sb s3/my-bucket-block/path
, but the yaml + CLI wizard based approach is where we're headed going forwardJavier Ochoa
06/29/2023, 10:23 PMJavier Ochoa
06/29/2023, 10:23 PM