Question about list block integration variable #18534
|
Good morning, I want to use the S3 bucket integration block, so I have created a minio credential block associated: how can I reference the minio credential block using {{ prefect.blocks. }} notation? |
Replies: 1 comment 1 reply
|
Hey @Cyber-Oscar, I'm assuming you want to include this as part of your 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 The slug name would be 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. |
Hey @Cyber-Oscar, I'm assuming you want to include this as part of your
prefect.yamlfile?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-librariesTo 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.