# 6.4 Take Action: send your segment to an S3-destination

Adobe Experience Platform also has the ability to share Audiences to Email Marketing Destinations such as Salesforce Marketing Cloud, Oracle Eloqua, Oracle Responsys and Adobe Campaign.

You can use FTP or SFTP as part of the dedicated destinations for each of these Email Marketing Destinations, or you can use AWS S3 to exchange lists of customers between Adobe Experience Platform and these Email Marketing Destinations.

In this module, you'll configure such a destination by making use of an AWS S3 bucket.

## 6.4.1 Create your S3 bucket

Go to <https://console.aws.amazon.com> and sign in with the Amazon-account you previously created.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-9f38d0008610f73401e363a56c42a87e1ef3669e%2Fawshome.png?alt=media)

After logging in, you'll be redirected to the **AWS Management Console**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-9203f96e43c1be48079d118c8de08cdf75c95d2a%2Fawsconsole.png?alt=media)

In the **Find Services** menu, search for **s3**. Click the first search result: **S3 - Scalable Storage in the Cloud**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-12ed32c68c1e08af39d50e715ab1b90cfbb8410a%2Fawsconsoles3.png?alt=media)

You'll then see the **Amazon S3** homepage. Click **Create Bucket**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-5252e6c0abe6758facb58bfa798a84b3897d4f0e%2Fs3home.png?alt=media)

In the **Create Bucket** screen, you need to configure two things:

* Name: use the name `aepmodulertcdp--demoProfileLdap--`. As an example, in this exercise the bucket name is **aepmodulertcdpvangeluw**
* Region: use the region **EU (Frankfurt) eu-central-1**

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-53bad029827f290e87bee112163e179becb5f812%2Fbucketname.png?alt=media)

Leave all the other default settings as they are. Scroll down and click **Create bucket**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-cf4e0aa3a6bcc849730b0d0e4deb03968d8fe11d%2Fcreatebucket.png?alt=media)

You'll then see your bucket being created and will be redirected to the Amazon S3 homepage.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d4091e2b7d85b7c9b18997f764b9e1e5db597377%2FS3homeb.png?alt=media)

## 6.4.2 Set permissions to access your S3 bucket

The next step is to setup access to your S3 bucket.

To do that, go to <https://console.aws.amazon.com/iam/home>.

Access to AWS resources is controlled by Amazon Identity and Access Management (IAM).

You'll now see this page.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-4496693649ef4068707b170197b71afa91a04341%2Fiam.png?alt=media)

In the left menu, click **Users**. You'll then see the **Users** screen. Click **Add Users**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-ade891221f648ebde8faae120349f805b412fc31%2Fiammenu.png?alt=media)

Next, configure your user:

* User Name: use `s3_--demoProfileLdap--_rtcdp` as a name, so in this example the name is `s3_vangeluw_rtcdp`.
* AWS access type: select **Access key - Programmatic access**.

Click **Next: Permissions**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f8f334cd5cebe1970703b178617f5727afc41d01%2Fconfiguser.png?alt=media)

You'll then see this permissions screen. Click **Attach existing policies directly**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-6b7d3a62dc035cde23e378bb382856d03839d7b5%2Fperm1.png?alt=media)

Enter the search term **s3** to see all related S3 policies. Select the policy **AmazonS3FullAccess**. Click **Next: Tags**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-ed5a43dd91dba5acfae72e8935bb405f9274540a%2Fperm2.png?alt=media)

On the **Tags** screen, there's no need to configure anything. Click **Next: Review**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-161b04637603cb18ef6f24bac854df1167897422%2Fperm3.png?alt=media)

Review your configuration. Click **Create User**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-fd11e31f0c787a0f8f5ba6567be6a9e64a3db2b9%2Freview.png?alt=media)

Your user is now created and you're seeing your credentials to access your S3 environment. This is the only time you'll see your credentials so please write them down.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-72841b64af49a42830068f8b100fa388895fe50f%2Fcred.png?alt=media)

Click **Show** to see your Secret access key:

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-a2c8ec43ffa006e6afca5d9a77b52bf0e751b0e7%2Fcred1.png?alt=media)

{% hint style="warning" %}
Store your credentials in a text-file in your computer.

* Access key ID: ...
* Secret access key: ...

Once you click **Close** you'll never see your credentials again!
{% endhint %}

Click **Close**.

![ETL](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-0819d753b8bb6840ab1c730aef359f50e8488b70%2Fclose.png?alt=media)

You've now successfully created an AWS S3 bucket and you've created a user with permissions to access this bucket.

## 6.4.3 Configure Destination in Adobe Experience Platform

Go to [Adobe Experience Platform](https://experience.adobe.com/platform). After logging in, you'll land on the homepage of Adobe Experience Platform.

![Data Ingestion](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d3766e8abcdcae565589d172ff39148a026b3712%2Fhome.png?alt=media)

Before you continue, you need to select a **sandbox**. The sandbox to select is named `--aepSandboxId--`. You can do this by clicking the text **\[!UICONTROL Production Prod]** in the blue line on top of your screen. After selecting the appropriate \[!UICONTROL sandbox], you'll see the screen change and now you're in your dedicated \[!UICONTROL sandbox].

![Data Ingestion](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f8fe0607dc3e272ebd2416a98220bb1d82c1a166%2Fsb1.png?alt=media)

In the left menu, go to **Destinations**, then go to **Catalog**. You'll then see the **Destinations Catalog**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-549c68e6c899eaa9eed4ac793bbfcae1487227bf%2Frtcdpmenudest.png?alt=media)

Click **Cloud Storage**, then click the **Set up** button (or on **Activate Segments**, depending on your environment) on the **Amazon S3** card.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-0a0f3e551a00c16f329566a5f5d618fcf027b176%2Frtcdp2.png?alt=media)

Depending on your environment, you might have to click **+ Configure new destination** to start creating your destination.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-b190bdc6a7abea651ad2c0546d73be058e4594c8%2Frtcdp2a.png?alt=media)

Select **New Account** as Account Type. Please use the S3 credentials that were given to you in the previous step:

| Access Key ID | Secret Access Key |
| :-----------: | :---------------: |
|   AKIA.....   |     Cm5Ln.....    |

Click **Connect to destination**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-1494f7a365878bdfa4f76155a5f3817fc7c9c309%2Frtcdpsfs3.png?alt=media)

You'll then see a visual confirmation that this destination is now connected.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-d68621830f119c2eac410624fa81f1e8b4cae127%2Frtcdpsfs3connected.png?alt=media)

You have to provide a name and folder so that Adobe Experience Platform can connect to the S3 bucket.

As a naming convention, please use the following:

| Access Key ID |          Secret Access Key          |
| :-----------: | :---------------------------------: |
|      Name     |   `AWS - S3 - --demoProfileLdap--`  |
|  Description  |   `AWS - S3 - --demoProfileLdap--`  |
|  Bucket Name  | `aepmodulertcdp--demoProfileLdap--` |
|  Folder Path  |                  /                  |

Click **Next**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-5c7990563eaff01073fc17fef3f45aeb5efc7475%2Frtcdpsfs3connect2.png?alt=media)

You can now optionally attach a Data Governance Policy to your new destination. Click **Next**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f0af7bcd803ccf10a4dd38c74bec80fe10247b87%2Frtcdpsfs3connect2gov.png?alt=media)

In the list of segments, search for the segment you created in exercise 1 and select it. Click **Next**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-233b54672dfd4be764990d6d67363c604d898140%2Fs3a.png?alt=media)

You'll then see this. If you wish, you can edit the schedule by clicking the **pencil** icon. **Create Schedule**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-f2abaa0afa61b61137814268d7c27fee32c74430%2Fs3bb.png?alt=media)

Define your schedule of choice. Select **Export incremental files** and set the frequency to **Hourly** every **3 hours**. Click **Create**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-0011391bad6ade58de87c225ae1d84f43cab76c8%2Fs3bbc.png?alt=media)

You'll then have this. Click **Next**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-cfb4c51b0827a025809c22c602eaacbff3e38c12%2Fs3bbca.png?alt=media)

You can now select attributes for the export towards AWS S3. Click **Add new field** and ensure the field `--aepTenantId--.identification.core.ecid` is added and marked as **Deduplication Key**.

Optionally, you can add as many other fields as required.

Once you've added all fields, click **Next**.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-22e12152561c81b9743f5f702725ca3041fa1167%2Fs3c.png?alt=media)

Review your configuration. Click **Finish** to finish your configuration.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-6b8c99e95f333d319d81c071914b1175d96f54c2%2Fs3g.png?alt=media)

You'll then be back at the Destination Activation screen and you'll see your segment added to this destination.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-b69af734496667e8acf81813063e8f67b35c82b8%2Fs3j.png?alt=media)

If you'd like to add more segment exports, you can click **Activate Segments** to restart the process and add more segments.

![RTCDP](https://858372621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBC8bA57il8Sj47B7QPJ%2Fuploads%2Fgit-blob-2bc7cb04d245bfd7f98912ac8bcb4fcbaece0a3e%2Fs3k.png?alt=media)
