Dask Cloud Provider (dask-cloudprovider) is a Python library that enables native cloud integration for Dask. It provides classes for constructing and managing ephemeral Dask clusters on various cloud platforms, including AWS, GCP, Azure, DigitalOcean, Hetzner, IBM Cloud, OpenStack, and Nebius. It also includes plugins that make Dask components cloud-aware. The library aims to simplify the deployment and operation of Dask clusters on the cloud. As of its latest version 2025.9.0, released in September 2025, it is actively maintained with releases published automatically when tags are pushed to GitHub.
pip install dask-cloudproviderVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates creating an ephemeral Dask cluster on AWS Fargate, connecting a client, running a simple computation, and ensuring resources are properly de-provisioned using a context manager. Users must have their cloud provider credentials configured (e.g., AWS CLI `aws configure` for AWS) for the cluster to provision successfully.
Always call `cluster.close()` when done with the cluster, or use the cluster object within a `with` statement (context manager) to ensure automatic cleanup.
Install `dask-cloudprovider` with the appropriate extras, e.g., `pip install dask-cloudprovider[aws]` for AWS, `pip install dask-cloudprovider[gcp]` for Google Cloud, or `pip install dask-cloudprovider[all]` for all providers.
Review the `security` section of the dask-cloudprovider documentation for your specific cluster manager. Configure appropriate security groups to restrict access (e.g., to a specific VPC or IP range), or disable public exposure if running within a trusted network.
Before running dask-cloudprovider code, ensure your cloud credentials are set up. This typically involves using the cloud provider's CLI tools (e.g., `aws configure`, `gcloud auth login`), setting environment variables (e.g., `AWS_ACCESS_KEY_ID`), or configuring a Dask `cloudprovider.yaml` file.