Skip to main content

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 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 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: