---
title: "Setting up secrets providers for Pulumi"
url: "https://www.pulumi.com/dev/examples/secrets-provider/"
image: "https://www.pulumi.com/assets/og/dev/examples/secrets-provider.png"
---

# Setting up secrets providers for Pulumi

- Source on GitHub: https://github.com/pulumi/examples/tree/master/secrets-provider

## Get started with this example

This example lives in the [pulumi/examples](https://github.com/pulumi/examples/tree/master/secrets-provider) repo. Pull down just this directory to follow along:

```bash
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set secrets-provider
cd pulumi-examples/secrets-provider
```

Pulumi supports [secrets-providers](https://www.pulumi.com/docs/intro/concepts/config/#configuring-secrets-encryption) which allow you to encrypt the secrets you store in the Pulumi statefile.

This example shows how to set up the secrets for each cloud and walks through initializing your stack using the different secrets providers.
