# Amazon S3 Bucket Storage in Astera

Amazon S3 is a storage service designed to store and retrieve data efficiently. Astera provides cloud connectivity to Amazon S3 Bucket Storage, allowing for quick access and easy data storage.&#x20;

In this document, we will explore the methods Astera provides to connect to Amazon S3 buckets.

### Connecting to Amazon S3 in Astera

1. Drag and drop the *Cloud Connection* object from the *Resources* section of the toolbox onto the dataflow.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FbXFG7I6Qk8Hbu0EvfzZY%2F5_updated.png?alt=media\&token=f80fbd77-9955-4fbb-a3c1-407c1e1939fc)

2. Right-click on the *Cloud Connection* object and select *Properties* from the context menu,

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F7IOxghjTFwEegm3FwyET%2F6_updated.png?alt=media\&token=2ecc55d6-be4e-4dde-aa32-15dd46a1cfc2)

3. The *Cloud Connection Properties* window will open. Select *Amazon S3* as your cloud provider from the *Provider* drop-down.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FsfgNfk33H8zl2h8yafvE%2F7.png?alt=media\&token=bfd2c66b-2552-47b7-b097-871aebcca89f)

4. Choose between the two authentication methods:&#x20;
   * AccessKey
   * RoleBased
5. Follow the steps below to obtain credentials for AccessKey or RoleBased authentication from your Amazon account.

{% tabs %}
{% tab title="AccessKey Authetication" %}

1. Go to *AWS Management Console > Security, Identity, and Compliance > IAM*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FzPlZ07j6bmgqJURxGuGA%2F1_updated.png?alt=media\&token=17b074ef-e00c-4c1a-95ad-20284d4d09be)

2. An *Identify and Access Management (IAM)* dashboard will open. Open *Access Management > Users*. Select the user to get the access keys.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FoXujbsD1hKEa80fS6l2X%2F3_updated.png?alt=media\&token=7cb0b486-867b-4ef2-94b9-3e46fcc249b6)

3. A *Summary* page would open, from here, select *Security Credentials*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FWXCPMPHcFvvP4PtVUKcP%2F4_updated.png?alt=media\&token=713c6778-cead-4a56-84dc-98660ac35894)

4. On this page, you can create your access key by selecting the *Create Access Key* option.

Alongside the access key, the *Access key ID* is also required.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F3NdViBeORKpP9ZLqHQJb%2F4.2_updated.png?alt=media\&token=1f1575ae-c18c-4996-b9ff-fca450931354)

{% hint style="info" %}
**Note**: You cannot retrieve a lost key. You will have to create a new key and make your previous key inactive. You can only have two active keys at a time.
{% endhint %}

5. The access key will open in a new pane. There is an option to download the key in a .csv file or you can just save it with you by copying it.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fp1eShq9PPWbUefmZtzh8%2F4.3_updated.png?alt=media\&token=831f9f0d-4e89-45a8-aee7-ae7d5e505f41)

You can now use the created access key to connect to Amazon S3 Bucket in Astera.
{% endtab %}

{% tab title="RoleBased Authentication" %}

1. Go to *AWS Management Console > Security, Identity, and Compliance > IAM*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FzPlZ07j6bmgqJURxGuGA%2F1_updated.png?alt=media\&token=17b074ef-e00c-4c1a-95ad-20284d4d09be)

2. An *Identify and Access Management (IAM)* dashboard will open. Open *Access Management > Users*. Select the user to get the access keys.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FoXujbsD1hKEa80fS6l2X%2F3_updated.png?alt=media\&token=7cb0b486-867b-4ef2-94b9-3e46fcc249b6)

3. A *Summary* page would open, from here, select *Security Credentials*.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FWXCPMPHcFvvP4PtVUKcP%2F4_updated.png?alt=media\&token=713c6778-cead-4a56-84dc-98660ac35894)

4. On this page, you can create your access key by selecting the *Create Access Key* option.

Alongside the access key, the *Access key ID* is also required.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F3NdViBeORKpP9ZLqHQJb%2F4.2_updated.png?alt=media\&token=1f1575ae-c18c-4996-b9ff-fca450931354)

{% hint style="info" %}
**Note**: You cannot retrieve a lost key. You will have to create a new key and make your previous key inactive. You can only have two active keys at a time.
{% endhint %}

5. The access key would open in a new pane. There is an option to download the key in a .csv file or you can just save it with you by copying it.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fp1eShq9PPWbUefmZtzh8%2F4.3_updated.png?alt=media\&token=831f9f0d-4e89-45a8-aee7-ae7d5e505f41)

6. Now, go to *Access Management > Roles*. Here, you can click on the Amazon S3 role to get the ARN.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fh2d6RStZlyeTYjG8ywKQ%2F2_updated.png?alt=media\&token=c70209da-4b90-49a5-bf82-cace0fe1fe0b)

7. On the screen that appears, copy the ARN.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Ff5KSir39pI5KejJ4Q0KV%2F2.1_updated.png?alt=media&#x26;token=9721e9fd-3efb-4c8d-aee7-af9e503a2fe3" alt=""><figcaption></figcaption></figure>

You can now use the credentials to connect to Amazon S3 Bucket in Astera.&#x20;
{% endtab %}
{% endtabs %}

6. For AccessKey authentication, provide the credentials for the *Amazon S3* cloud. The credentials require:

* *Access Key ID*
* *Access Key*

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FpZlxVjapkqlsL38LCcBQ%2F7.1.png?alt=media\&token=c39e0af9-b3eb-4f13-8bd9-8fc99f57e73c)

7. Alternatively, for RoleBased authentication, provide the following credentials for Amazon S3 cloud:

* App Key
* App Secret
* IAM Role ARN

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F8O35Ix9K7nKvGa1mT4NT%2F8.png?alt=media&#x26;token=f124483d-06f1-401e-b21e-a4222611500e" alt=""><figcaption></figcaption></figure>

8. Test the connection.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FpWyO2xNQ3sazORTVRZA5%2F9.png?alt=media\&token=eb31987b-3ebf-44f4-a579-667569b9a7f3)

*Root Path:* This is used to keep confidential data and information secure from access by unauthorized users. It lets you point out the particular file needed while keeping all the other folders protected.

9. Click *OK* and the *Cloud Connection* object will be configured.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fh5jARsYuUH6rPSDt3H0Y%2F10.png?alt=media\&token=56178d5b-755a-484a-bf85-bb81b803aad9)

This concludes the authentication and connection of the Amazon S3 Bucket Storage in Astera.
