Use integrations
Prefect integrations are PyPI packages you can install to help you build integrate your workflows with third parties.
Install an integration package
Install an integration package with pip
.
For example, to install prefect-aws
you can:
- install the package directly:
- install the corresponding extra:
See the setup.py
for the full list of extras and the versions they specify.
Register blocks from an integration
Once the packages is installed, register the blocks within the integration to view them in the Prefect Cloud UI:
For example, to register the blocks available in prefect-aws
:
To use a block’s load
method, you must have a block saved. Learn more about blocks.
Use tasks and flows from an Integration
Integrations may contain pre-built tasks and flows that can be imported and called within your code.
For example, read a secret from AWS Secrets Manager with the read_secret
task with the following code:
Customize tasks and flows from an integration
To customize pre-configured tasks or flows use with_options
. For example, configure retries for dbt Cloud jobs:
Was this page helpful?