# AWS S3

These instructions apply to the current Admin Console.

## Description

The **AWS S3** connection type (`aws-s3`) connects to Amazon S3 so Flows can list, read, write, and delete objects.

## Required Information

After you select this type in **Connection Type**, the console asks for the following fields. Every connection also has a **Connection ID**, **Connection Name**, and **Connection Type**.

| **Field**             | **Required** | **Description**                                                             |
|-----------------------|--------------|-----------------------------------------------------------------------------|
| **Region**            | Yes          | The AWS Region of the bucket, for example `us-east-1`.                      |
| **Access Key ID**     | Yes          | The access key ID of the IAM credentials.                                   |
| **Secret Access Key** | Yes          | The secret access key. Stored as a secret.                                  |
| **Bucket Name**       | No           | A default bucket for **Read Cloud**, **Write Cloud**, and **Delete Cloud**. |

## Usage

In Legacy Flows, use AWS S3 connections with the Stream nodes [**List Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/list-cloud.md), [**Read Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/read-cloud.md), [**Write Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/write-cloud.md), and [**Delete Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/delete-cloud.md).

- For **List Cloud**, set **Remote Path** to the bucket name, for example `my-bucket`, even if **Bucket Name** is set on the connection.
- For **Read Cloud**, **Write Cloud**, and **Delete Cloud**, if the connection specifies a **Bucket Name**, enter only the object key in **Remote Path**, for example `path/to/file.txt`. Otherwise, include the bucket name, for example `my-bucket/path/to/file.txt`.

To set content headers for uploaded files, configure **Headers** in the **Write Cloud** node. See [Setting headers](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/write-cloud.md#setting-headers).
