Role Based AWS Credentials
This section covers how to configure IAM roles in order to manage your credentials at Upsolver.
SQLake connections store access credentials such as IAM roles, access and secret keys, and connection strings. Connection objects are managed by administrators and referenced by users when creating data processing jobs. Connections are a simple and secure way to authenticate access to resources without the need to pass around sensitive credentials.
The bird's-eye view of the authentication scheme is using IAM roles, linked to your intended policy, with a trust relationship that contains an external id. Then, using that role and external id you can create SQLake connections. If you would like to expand on IAM roles, you can find the AWS documentation here.
The steps to manage credentials in Upsolver using AWS roles are:
- 1.Create an IAM policy with required permissions
- 2.Create an IAM role
The connection you create in SQLake allows you to manage the credentials needed to list, read, write, and delete objects. It is up to you to determine which specific permissions you need when developing your SQLake jobs.
The following instructions describe how to create an IAM policy and add the necessary permissions to allow SQLake to access your data.
- 1.Log into the AWS Management Console.
- 2.On the dashboard, search for IAM and select Identity & Access Management (IAM):
- 3.Choose Account Settings from the menu on the left-hand side.
- 4.Expand the Security Token Service Regions list, find the AWS region corresponding to the region where your account resides, and choose Activate if it is Inactive.
- 5.Choose Policies from the menu on the left-hand side, and click Create Policy.
- 6.Click the JSON tab:
In the AWS IAM Console, create an IAM role that grants access to the data.
- 1.From the IAM Console, select Roles from the menu on the left-hand side.
- 2.Click Create Role.
- 3.Select Custom trust policy as the Trusted Identity Type.
- 4.From Upsolver's Security Information page, you can copy the trusted entity that Upsolver assigned to your organization and paste it here.
Here is a trusted entity example:
You have now updated the IAM role trust policy to allow a specific Upsolver role to assume and use these permissions to access data in your AWS account.
Note: The IAM role configured in the trust policy is auto-generated and attached to your SQLake organization. Only your organization is allowed to assume your role and access data in your AWS account.
You’ve now created an IAM role that allows SQLake to access your data.
- 9.Note down the Role ARN by selecting your role from the role summary page.
For example, creating an s3 connection: