Amazon S3
Connect Gretel to your Amazon S3 buckets.
Last updated
Was this helpful?
Connect Gretel to your Amazon S3 buckets.
Last updated
Was this helpful?
This guide will walk you through connecting source and destination S3 buckets to Gretel. Source buckets will be crawled and used as training inputs to Gretel models. Model outputs get written to the configured S3 destination.
Prerequisites to create a Amazon S3 based workflow. You will need
A connection to .
A source bucket.
(optional) A destination bucket. This can be the same as your source bucket, or omitted entirely.
Amazon S3 related actions require an s3
connection. The connection must be configured with the correct IAM permissions for each Gretel Action.
You can configure the following properties for a connection
access_key_id
Unique identifier used to authenticate and identify the user.
secret_access_key
Secret value used to sign requests.
The following policy can be used to enable access for all S3 related actions
More granular permissions for each action can be found in the action's respective Minimum Permissions section.
The following documentation provides instruction for creating IAM users and access keys from your AWS account.
You can configure your Gretel S3 connector to use an IAM role for authorization. Using IAM roles you can grant Gretel systems access to your bucket without sharing any static access keys.
You may find your Gretel Project ID from the Console or SDK using the following instructions:
Navigate to the Projects page, and select Copy UID from the project drop-down on the right.
This should automatically copy the project id to your clipboard.
Now that you have the external id, you will need to create an AWS IAM role. To create the role, navigate to your AWS IAM Console, select the Roles page from the left menu, select Create Role and follow the instruction for Gretel Cloud below:
From the Role Creation dialog
Select AWS account as the Trusted entity type.
From the Select Another AWS account and enter Gretel's AWS account 074762682575
.
Check Require external ID and enter the Gretel Project ID from the previous step as the External ID.
The final trust policy on your IAM role should look similar to
For more information about delegating permissions to an AWS IAM user, please reference the following AWS documentation:
Now that you have the role configured, you can create a Gretel connection using the role ARN from the the previous step.
From the Gretel Console, navigate to the Create Connection dialog, select S3, select the Role ARN authentication method, and enter the role ARN created in the previous steps.
Before setting up your IAM role, you must first locate the Gretel Project ID for the project you wish to create the connection in. You will use the project id as the for the IAM role.
Select Next and add the appropriate IAM for the bucket.