Skip to content
Discussion options

You must be logged in to vote

Hey @Cyber-Oscar, I'm assuming you want to include this as part of your prefect.yaml file?

Take a look at https://docs.prefect.io/v3/how-to-guides/deployments/prefect-yaml#templating-options

You should be able to reference the credential block using the syntax {{ prefect.blocks.<slug-name>.<name> }}

The slug name would be minio-credentials. see: https://docs.prefect.io/v3/concepts/blocks#blocks-in-prefect-integration-libraries

To get a specific attribute of the Block, you can reference the field names from the SDK docs: https://reference.prefect.io/prefect_aws/#prefect_aws.MinIOCredentials

e.g.

{{ prefect.blocks.minio-credentials.your-credential-name.minio_root_user }}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Cyber-Oscar
Comment options

Answer selected by Cyber-Oscar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants