# Fivetran and Amazon S3 Data Sharing

If using the Client’s AWS S3:

1. Client controls data security.
2. Client creates a role for CloudFactory’s Fivetran to access their AWS S3 bucket.&#x20;

<figure><img src="/files/wYzXzhw88yYWgonZ5q47" alt=""><figcaption></figcaption></figure>

#### Note <a href="#h_01hxshzb0zvdj5jq6ahmx4cm1d" id="h_01hxshzb0zvdj5jq6ahmx4cm1d"></a>

Follow this setup guide to connect your AWS S3 bucket to Fivetran: [Fivetran S3 Setup Guide](https://fivetran.com/docs/files/aws-s3/setup-guide)

If using CloudFactory’s AWS S3:

1. CloudFactory controls data security.
2. Client sends data to CloudFactory’s AWS S3.&#x20;

<figure><img src="/files/2EtUCyMEEywqWdBumCKT" alt=""><figcaption></figcaption></figure>

#### Overview <a href="#uuid-990d1325-03a8-510f-004b-36e3b218b367_bridgehead-idm4665466328745633174867603492" id="uuid-990d1325-03a8-510f-004b-36e3b218b367_bridgehead-idm4665466328745633174867603492"></a>

1. Create an AWS policy with access to the correct S3 location.
2. Create an AWS role:
   1. Reference the AWS account number and external id (provided by CloudFactory).
   2. Attach the new policy from step 1.
3. Provide the resulting role ARN back to CloudFactory.
4. Provide any file naming conventions to CloudFactory.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.cloudfactory.com/cloudfactory-public-api/fivetran-and-amazon-s3-data-sharing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
