Amazon S3
This section covers how to configure an Amazon S3 Connection in Upsolver to read from and write to an Amazon S3 location managed by another AWS account.
Last updated
This section covers how to configure an Amazon S3 Connection in Upsolver to read from and write to an Amazon S3 location managed by another AWS account.
Last updated
In order to create an IAM role and a trust relationship, please read the Role-Based AWS Credentials documentation, and then use the following documentation to create the IAM policy with the required Amazon S3 permissions.
Upsolver requires the following permissions:
The following permissions are required to perform additional SQL actions:
Permission | SQL action |
---|---|
When creating an Amazon S3 connection in Upsolver, you can include the PATH_DISPLAY_FILTERS
property, which allows you to restrict the Amazon S3 paths that users can see in the Upsolver navigation tree. However, this does not limit the user’s ability to read and write objects; that is still managed by the permissions in the IAM role attached to the connection. This property is not to be used to restrict access to data.
If the PATH_DISPLAY_FILTERS
property is omitted, Upsolver attempts to list all buckets in the account. The available buckets are listed in the Upsolver navigation tree to make it easier for users to discover datasets. For this to function correctly, Upsolver requires the IAM policy to include s3:ListAllMyBuckets
.
If PATH_DISPLAY_FILTERS
is included when creating the Amazon S3 connection, you do not need to add the s3:ListAllMyBuckets
permission.
When creating the IAM policy, add the policy statements that allow Upsolver to access the data in your Amazon S3 location:
Ensure you replace the <bucket>
and <prefix>
with your actual bucket name and folder prefix name.
The above policy allows the Upsolver job to read and write data to the listed buckets. In the case where a read-only connection is needed, you can use the following policy:
When you create an Amazon S3 connection using a read-only IAM role, as shown above, and include a PATH_DISPLAY_FILTERS
property to limit which paths are discoverable in the Upsolver UI, you must also include the READ_ONLY = TRUE
property. This tells Upsolver that the IAM permissions do not include s3:PutObject
and to skip validation.
Learn More
To learn more about setting permissions for Amazon S3, please read the Policies and Permissions in Amazon S3 guide from AWS.
s3:PutObject
Write data to the target location using COPY FROM
, INSERT
, and MERGE
jobs
s3:DeleteObject
Enable table retention to delete old data