Step 1 - Create an IAM role for cross-account access
- In the AWS Console, go to IAM → Roles and select Create role.
- In e6data, open Settings → Storage Credentials, start a new AWS storage credential, and choose Assume Role. In AWS IAM, choose Custom trust policy and paste the policy from the e6data form. Keep the form open so you can register the role after you copy its ARN.
-
Select Next, name the role (for example,
e6data-cross-account-role), and select Create role.
Step 2 - Attach an S3 read-access policy
- Open the role and select Add permissions → Create inline policy.
- In the JSON editor, enter the following, replacing
YOUR-DATA-BUCKETwith your bucket name(s):
- Select Create policy.
Step 3 - Attach a Glue access policy (if using AWS Glue)
If you will connect an AWS Glue catalog, add a second inline policy:Step 4 - Attach KMS Decrypt Policy (only if your S3 buckets are encrypted with KMS)
- Click Add permissions → Create inline policy.
- Enter, replacing the key ARN with your own KMS key(s) and click Create policy.
Step 5 - Retrieve the role ARN
Open the role and copy its Role ARN from the Overview page. You register this ARN in e6data in Register the role in e6data below.Alternative - AWS CLI
Save the policy from the e6data storage credential form astrust-policy.json in your working directory. Use that file when you create the role:
All of these steps can also be performed with a CloudFormation template. Contact e6data for the template.
Register the role in e6data
- Return to the same storage credential form you used to copy the trust policy.
- Enter a name for the credential and paste the role ARN from Step 5.
- Create the storage credential.
See also
- Connect S3 and Glue - create a catalog that uses this role.
- Troubleshooting - cross-account access errors.