> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Persistent Storage

## Find the Persistent Storage Configuration in the Helm Chart Values

### Display Helm Chart Values

```bash theme={null}
helm show values dify/dify
```

This is an example of the persistent storage configuration in the Helm chart values.

```yaml theme={null}
persistence:
  type: "s3"
  s3:
    endpoint: "https://xxx.r2.cloudflarestorage.com"
    accessKey: "#REPLACE_ME#"
    secretKey: "#REPLACE_ME#"
    region: "us-east-1"
    bucketName: "your-bucket-name"
    addressType: ""
    useAwsManagedIam: false
  ... ...
```

## The options for the `persistence.type` field

* s3
* azure-blob
* aliyun-oss
* google-storage
* tencent-cos

## How to configure the Amazon S3 storage using IAM roles

If you want to use the AWS IAM roles to access the S3 bucket, you can set the `useAwsManagedIam` field to `true` in the Helm chart values. The `region` and `bucketName` fields are required.

```yaml theme={null}
persistence:
  type: "s3"
  s3:
    endpoint: "https://s3.xxxxx.amazonaws.com"
    region: "us-east-1"
    bucketName: "your-bucket-name"
    useAwsManagedIam: true
```
