Amazon S3 for Snowflake
Last updated
Was this helpful?
Last updated
Was this helpful?
As discussed in , Amazon S3 is required for several data-related use cases in Sortment.
Following details are requied on Sortment for S3 connection for Snowflake:
AWS Region: The geographical region where your AWS services, including S3 and Snowflake, are deployed. Examples include us-east-1 (N. Virginia) or ap-south-1 (Mumbai). In your → Click on your profile (top-right) → See the selected region.
AWS S3 Bucket Name: A globally unique name assigned to an S3 bucket where you store and retrieve data. On → Go to S3 → Locate your bucket under “Buckets” list.
Access Key ID: A unique identifier for an AWS IAM user or service that allows programmatic access to AWS services. On → IAM → Users → Select your user → Security Credentials tab → Generate Access Key.
Secret Access Key: A secret key paired with the Access Key ID, used for signing API requests securely. Generated alongside the Access Key ID in IAM (only shown once). If lost, you must generate a new pair.
Snowflake Stage Name: This stage will be used to read and write data between your Snowflake and Amazon S3 bucket. You have to create a new stage for Sortment, and use the resepctive name here. Follow the to create the stage.
Follow these steps to setup an S3 bucket for Sortment:
Click on "Create bucket."
Enter a unique bucket name (globally unique across AWS).
Select an AWS region for the bucket. This should be same as your Snowflake cluster region.
Create the bucket.
From your AWS console navigate to Identity and Access Management (IAM) > Users > Select the user > Add permission > Create inline policy
In the JSON policy editor, use the following policy. Update {$bucket-name}
to the bucket created above. Give your policy a name and create the policy.
The Access Key access type allows you to configure Sortment to use an IAM user by providing the user's Access Key ID and Secret Access Key.
Once you have an Access Key ID and Secret Access Key, paste those values into the form and click Create.
Once the credentials are created, you need to create a stage in Snowflake to complete the S3 connection.
Ensure that the stage name is set as sortment
.
Use the credentials generated above to connect Sortment to your S3 bucket and proceed.
Sign in to the AWS Management Console and .
Follow the user creation flow to create a new user for Sortment. If you need help, consult the on this topic.
If you need help generating these keys, consult the on this topic.