> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/data-quality-self-hosted/connections/supported-connections/supported-remote-files/connecting-to-amazon-s3.md).

# Connecting to Amazon S3

This section contains details for Amazon S3 connections.

## General information

Amazon Simple Storage Service (Amazon S3) is an object storage service that Data Quality & Observability (self-hosted) treats as a Remote File Connection for accessing data. You can also use S3 buckets to export and store breaking records from Collibra DQ rules externally. This can be helpful if you need to control your storage environment behind a firewall.

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Data source</td><td>Amazon S3</td></tr><tr><td>Supported versions</td><td>N/A</td></tr><tr><td>Connection string</td><td><code>s3://</code></td></tr><tr><td>Packaged?</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</td></tr><tr><td>Certified?</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</td></tr><tr><td colspan="2">Supported features</td></tr><tr><td>Analyze data</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</td></tr><tr><td>Archive breaking records</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</td></tr><tr><td>Estimate job</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</td></tr><tr><td>Pushdown</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-de45f34193ae06a2b093c2dfb8fb80cfda945166%2Fclose-large%402x.png?alt=media" alt="" data-size="line"> No</td></tr><tr><td colspan="2">Processing capabilities</td></tr><tr><td>Spark agent</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</td></tr><tr><td>Yarn agent</td><td><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</td></tr></tbody></table>

## Minimum user permissions

In order for Collibra DQ to access your S3 bucket, you need the following permissions.

* ROLE\_ADMIN in Collibra DQ.
* Read access on the S3 bucket where your data is stored.
* Read and write access on the S3 bucket where breaking records are archived from Collibra DQ. This is only necessary if you use the archive breaking records feature.

## Recommended and required connection properties

| Required                                                                                                                                                                                                                                                                                                        | Connection Property      | Type   | Value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes                                                                 | Name                     | Text   | The unique name of your connection. Ensure that there are no spaces in your connection name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-de45f34193ae06a2b093c2dfb8fb80cfda945166%2Fclose-large%402x.png?alt=media" alt="" data-size="line"> No                                                               | HTTPS                    | Option | Converts the Connection URL field from an `s3://` to `https://` URI path.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-de45f34193ae06a2b093c2dfb8fb80cfda945166%2Fclose-large%402x.png?alt=media" alt="" data-size="line"> No                                                               | Path Style Access        | Option | Allows access to object stores along HTTPS paths. This option is only available when HTTPS is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <p><img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes</p><p>\*When HTTPS is selected, Bucket Name is required.</p> | Bucket Name              | string | <p>The exact name of the S3 bucket along the URI path you are attempting to access.</p><div data-gb-custom-block data-tag="tabs"><div data-gb-custom-block data-tag="tab" data-title="Example" data-icon="glasses-round"><p><strong>example\_bucket</strong></p></div></div>                                                                                                                                                                                                                                                                                                    |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes                                                                 | Connection URL           | String | <p>The connection string path of your S3 connection. The path must start with s3:// and point to the root bucket, not a sub-folder.</p><div data-gb-custom-block data-tag="tabs"><div data-gb-custom-block data-tag="tab" data-title="Example" data-icon="glasses-round"><p><code>s3://\<bucket-name></code></p></div></div><p>You can optionally add a key after the bucket name.</p><div data-gb-custom-block data-tag="tabs"><div data-gb-custom-block data-tag="tab" data-title="Example" data-icon="glasses-round"><p><code>s3://\<bucket-name>/key</code></p></div></div> |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes                                                                 | Region                   | String | <p>The AWS region in which the S3 bucket resides.</p><p>The default region is US\_EAST\_1</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-de45f34193ae06a2b093c2dfb8fb80cfda945166%2Fclose-large%402x.png?alt=media" alt="" data-size="line"> No                                                               | Target Agent             | Option | The [Agent](/data-quality-self-hosted/installation/agent.md) used to submit your DQ Job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes                                                                 | Auth Type                | Option | <p>The method to authenticate your connection.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The configuration requirements are different depending on the Auth Type you select. See <a href="#authentication">Authentication</a> for more details on available authentication types.</p></div>                                                                                                                                                                                                                                      |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-d06dd40622fc7d030e21f7c0303a90eb28d229fc%2Fok-large%402x.png?alt=media" alt="" data-size="line"> Yes                                                                 | Save Credentials         | Option | Select this option after you enter your connection details. We recommend selecting this option to allow credentials to be shared with users across the Collibra DQ platform.                                                                                                                                                                                                                                                                                                                                                                                                    |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-de45f34193ae06a2b093c2dfb8fb80cfda945166%2Fclose-large%402x.png?alt=media" alt="" data-size="line"> No                                                               | Driver Properties        | String | The configurable driver properties for your connection. Multiple properties must be semicolon-delimited, and each property=value pair, including the last one, must end with a semicolon (;). `abc=123;test=true;`                                                                                                                                                                                                                                                                                                                                                              |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-de45f34193ae06a2b093c2dfb8fb80cfda945166%2Fclose-large%402x.png?alt=media" alt="" data-size="line"> No                                                               | Archive Breaking Records | Option | Select this option to automatically export CSV files containing the breaking records of DQ Job to your S3 bucket.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <img src="https://4121921244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWCrP7Albs8DfJjIQxUxw%2Fuploads%2Fgit-blob-de45f34193ae06a2b093c2dfb8fb80cfda945166%2Fclose-large%402x.png?alt=media" alt="" data-size="line"> No                                                               | Archive Location         | String | <p>The path along which break records will be archived when the Archive Break Records and HTTPS options are enabled.</p><p>Specify a schema output location in your data source for break records to send. For example, <strong>/write/FolderName</strong></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This option is only available when the HTTPS option is enabled.</p></div>                                                                                                                                                   |

## Authentication

Select an authentication type from the dropdown menu. The options available in the dropdown menu are the currently supported authentication types for this data source.

{% tabs %}
{% tab title="InstanceProfile" %}

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Instance Profile</td><td><p>Theinstance profile used to grant access to the EC2 instance to access your S3 bucket.</p><p>Optionally select Assume Role and add an accessRole when you use Instance Profile.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>DQ Cloud does not support Instance Profile.</p></div></td></tr><tr><td>Assume Role</td><td><p>This is optional for Instance Profile and Key authentication.</p><p>Select this option to generate a set of temporary security credentials that you can use to access AWS resources.</p><p>To assume an S3 IAM Role on EKS-based deployments of Collibra DQ, select Assume Role, then optionally enter the information in the Role to Assume field.</p></td></tr><tr><td>Role to Assume</td><td>The IAM role associated with your EC2 instance. This is optional when assuming an S3 IAM Role on EKS-based deployments of Collibra DQ.</td></tr></tbody></table>
{% endtab %}

{% tab title="Key" %}

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Key</td><td>AWS security credentials that use anaccess key ID and secret access key combination to access S3 buckets.</td></tr><tr><td>Key</td><td>The access key ID for your Amazon S3 storage account.</td></tr><tr><td>Secret</td><td>The secret access key for your Amazon S3 storage account.</td></tr><tr><td>Assume Role</td><td><p>This is optional for Instance Profile and Key authentication.</p><p>Select this option to generate a set of temporary security credentials that you can use to access AWS resources.</p><p>To assume an S3 IAM Role on EKS-based deployments of Collibra DQ, select Assume Role, then optionally enter the information in the Role to Assume field.</p></td></tr><tr><td>Role to Assume</td><td>The IAM role associated with your EC2 instance. This is optional when assuming an S3 IAM Role on EKS-based deployments of Collibra DQ.</td></tr></tbody></table>
{% endtab %}

{% tab title="OAuth2" %}
In the Driver Properties input field on the Properties tab, add the following property, adjusting the parameterized section (`${ }`) according to your IdP details: `dq.idp.url=${IdP-URL}`

{% hint style="info" %}
If your IdP uses scopes, you may need to add `dq.idp.scopes=${IdP-scope}` after the IdP URL.
{% endhint %}

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Username</td><td>The username credential required for the IdP service to authenticate a user.</td></tr><tr><td>Password</td><td>The password credential required for the IdP service to authenticate a user.</td></tr><tr><td>Assume Role</td><td><p>Select this option to generate a set of temporary security credentials that you can use to access AWS resources.</p><p>To assume an S3 IAM Role on EKS-based deployments of Collibra DQ, select Assume Role, then optionally enter the information in the Role to Assume field.</p></td></tr><tr><td>Role to Assume</td><td>The IAM role associated with your EC2 instance. This is optional when assuming an S3 IAM Role on EKS-based deployments of Collibra DQ.</td></tr></tbody></table>
{% endtab %}

{% tab title="SAML" %}

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Username</td><td>The username credential required for the IdP service to authenticate a user.</td></tr><tr><td>Password</td><td>The password credential required for the IdP service to authenticate a user.</td></tr><tr><td>Assume Role</td><td><p>Select this option to generate a set of temporary security credentials that you can use to access AWS resources.</p><p>To assume an S3 IAM Role on EKS-based deployments of Collibra DQ, select Assume Role, then optionally enter the information in the Role to Assume field.</p></td></tr><tr><td>Role to Assume</td><td>The IAM role associated with your EC2 instance. This is optional when assuming an S3 IAM Role on EKS-based deployments of Collibra DQ.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Password Manager

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Username</td><td>The username used to sign into your password manager service.</td></tr><tr><td>Password</td><td>Password is not required when you use Password Manager.</td></tr><tr><td>Script</td><td>The script that contains the SAML role. The password manager program contains the information needed to automate password-related tasks when you attempt to sign in to Collibra DQ.</td></tr><tr><td>App ID</td><td>The Application Identifier used to help the IdP service authorize Collibra DQ when you attempt to sign in.</td></tr><tr><td>Safe</td><td>The storage vault where your password and other authentication information are stored.</td></tr><tr><td>Pwd Mgr Name</td><td>The name of your safe.</td></tr><tr><td>accessRole</td><td>The IAM role associated with your EC2 instance.</td></tr></tbody></table>

## Connect to NetApp or Amazon S3 endpoint in URI format

To connect to NetApp or Amazon S3 endpoints in URI format, select the **HTTPS** option, specify a **Bucket Name**, and then add one of the following properties to the **Properties** tab, depending on the URI endpoint connection type to which you are connecting:

<table><thead><tr><th width="152">Connection</th><th>Property</th></tr></thead><tbody><tr><td>Amazon S3 endpoint URI</td><td><strong>s3-endpoint=s3</strong></td></tr><tr><td>NetApp</td><td><strong>s3-endpoint=netapp</strong></td></tr></tbody></table>

## Connect to MinIO with path style access

{% hint style="info" %}
The ability to connect to MinIO is only available in Collibra DQ versions 2024.03 or newer.
{% endhint %}

To connect to MinIO using path style access, select the **HTTPS** and **Path Style Access** options, specify a **Bucket Name**, and then add the following property to the **Properties** tab:

<table><thead><tr><th width="152">Connection</th><th>Property</th></tr></thead><tbody><tr><td>MinIO</td><td><strong>s3-endpoint=minio</strong></td></tr></tbody></table>

{% hint style="warning" %}
When connecting to MinIO, you must select the Path Style Access option.
{% endhint %}

## Limitations

* Instance Profile is not supported on DQ Cloud deployments.
* Filtergram on the Data Preview tab is not available for S3 connections. Currently, there is not a workaround for this limitation.
* When leveraging the Spark 3.2.2 standalone installation that comes with the AWS marketplace installation, there is a limitation due to a jar mismatch for the AWS S3 Archive feature. The issue is that the existing hadoop-aws.3.2.1 .jar file is incompatible with the feature.
  * A workaround is to update the hadoop-aws-3.2.1.jar to hadoop-aws-3.3.1.jar in the spark/jars directory. The necessary .jar file can be obtained from the following link: [Apache Downloads](https://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-3.3.6/hadoop-3.3.6-src.tar.gz).

    <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>If you encounter any difficulties locating the necessary .jar file on the Apache Downloads page, contact your CS or SE for assistance.</p></div>
