# Create an Amazon S3 Data Stream in Data 360

Create a data stream in Data 360 to start the data flow from the Amazon S3 source.

| User Permissions Needed  |                      |
| ------------------------ | -------------------- |
| To create a data stream: | Data Cloud Architect |

Before you begin:

- Make sure that the Amazon S3 connection is set up.
- Make sure that S3 Bucket permissions are set.
- Add the IP source addresses listed in the AWS ID IP Table section in [IP addresses](https://help.salesforce.com/s/articleView?id=data.c360\_a_data_cloud_ip_address_allowlist.htm\&type=5) to your allowlist.

1. In Data Cloud, on the Data Streams tab, click **New**.

   You can also use App Launcher to find and select Data Streams.

2. Select **Amazon S3**.

3. Select the applicable connector from the Connection dropdown.

4. Complete file and source details, and click **Next**.

   | Field Label           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
   | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | File Type             | Select CSV or Parquet.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
   | Import from Directory | (Optional) Path name, or folder hierarchy, pointing to a file's location. Place all source files in the specified directory. It's best to flatten your file structure, as any file in a subdirectory is ignored. **Note**: If you leave this field empty, the stream will use the parent directory (configured in the connection) as the extract/ingest path. If you change the stream settings to ingest from a new folder, note that Data 360 only ingests files modified **after** the *last modification date* of the previously ingested file. To ingest all files in the new folder, perform a one-time refresh on the new folder (**Refresh Now** > **Refresh All the Files**). |
   | File Name             | Name of the file to retrieve from the specified directory. If no file is specified, the first file found is selected. After you create a data stream, it retrieves all files found in the directory. Wildcards are also supported. For example, you can use *abc*.csv to indicate the retrieval of all files containing “abc” in their name. Each time the stream runs, all files satisfying the wildcard are imported.                                                                                                                                                                                                                                                                |
   | Source                | A label indicating an external system from where data is sourced. Multiple data streams can use the same label for Source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

5. Complete Object Details. You can create a data lake object (DLO) or use an existing DLO.

   If you choose to create a DLO then refer to [naming standards](https://help.salesforce.com/s/articleView?id=data.c360\_a_data_lake_object_naming.htm\&type=5). If you choose to use an existing DLO then refer to [Using existing data lake object to create a data stream](https://help.salesforce.com/s/articleView?id=data.c360\_a_guardrails_existing_data_lake_object.htm\&type=5) and familiarize yourself with the guardrails to consider when using an existing DLO.

6. Review and optionally edit the fields identified in the table.

7. Select a data stream category and primary key.

8. Add new formula fields if needed. You can map the fields to an existing DLO field or create a DLO field.

9. Click **Next**.

10. From the Data Space dropdown, select the applicable data space or the default data space.

11. Fill in the deployment details and click **Deploy**.

Map your DLO to the data model to use the ingested data in segments, calculated insights, and other use cases.

## See Also

- [Salesforce Help: Data Stream Settings and Refresh Modes](https://help.salesforce.com/s/articleView?id=data.c360\_a_data_stream_edit_settings.htm\&type=5)
- [Troubleshoot SSE-KMS with VPC Endpoint Errors](/docs/data/data-cloud-int/guide/c360-a-awss3-bucket-policies-troubleshooting.md)
