Install an integration package
Install an integration package withpip.
For example, to install prefect-aws you can:
- install the package directly:
- install the corresponding extra:
project.optional-dependencies section of pyproject.toml for the full list of extras and the versions they specify.
Register blocks from an integration
Once the package is installed, register the blocks within the integration to view them in the Prefect Cloud UI: For example, to register the blocks available inprefect-aws:
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 theread_secret task with the following code:
Customize tasks and flows from an integration
To customize pre-configured tasks or flows, usewith_options. For example, configure retries for dbt Cloud jobs: