Skip to content

Connect to an Amazon S3 data source (AWS Web Console method)

This guide explains how to connect your Koordinates site to an Amazon S3 bucket, so you can import data from it.

In this method, you create the access role yourself in the AWS web console. Experienced AWS users may prefer it. For most users, we recommend the CloudFormation template method, which creates the role for you.

Instead of giving Koordinates usernames, passwords or other credentials, you create an AWS role and let Koordinates use it. You control the role, so you control exactly what Koordinates can access through it.

  1. Open the Data Manager

    Select Manage in the navigation menu.

  2. Select New, then Amazon S3

    Select New. The tools menu opens at Data sources. Select Amazon S3 to open the Connect to Amazon S3 Source window.

  3. Copy your external ID

    Under Create a CloudFormation Template, copy the value shown after Your external ID is:. You’ll need it when you create the role.

    The Connect to Amazon S3 Source window showing the Create a CloudFormation Template section, with the external ID and the Skip and use your own role link.

  4. Select Skip and use your own role

    The window changes to a form where you’ll enter your bucket name and role ARN. Leave it open while you work in AWS.

    The Connect to Amazon S3 Source window with fields for Amazon S3 Bucket Name, IAM Role ARN and Prefix.

  5. Create a role in the AWS IAM console

    In a new browser tab, open the IAM console and create a new role (see Creating a role to delegate permissions to an IAM user):

    • For the trusted entity, choose another AWS account, and enter the Koordinates account ID: 276514628126.
    • Choose to require an external ID, and paste the external ID from step 3.
    • Don’t require MFA.
  6. Give the role a permissions policy

    Koordinates needs s3:ListBucket permission on each bucket you want to connect, and s3:GetObject permission on the objects in it. For example, a policy for a bucket called my-example-bucket looks like this:

    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Action": ["s3:ListBucket"],
    "Resource": ["arn:aws:s3:::my-example-bucket"]
    },
    {
    "Effect": "Allow",
    "Action": ["s3:GetObject"],
    "Resource": ["arn:aws:s3:::my-example-bucket/*"]
    }
    ]
    }

    To connect several buckets, list them all in the same policy, or attach several policies to the same role. You can also use the AWS visual policy editor instead of writing JSON.

  7. Name the role (it must begin with koordinates-s3-access)

    For security, Koordinates only accepts roles whose name begins with koordinates-s3-access. You can also add a description of the role.

  8. Review the role and create it

    Before you create the role, check that its trusted entities include the account 276514628126, and that its permissions include the policy from step 6. When it’s created, copy the role’s ARN. It looks like arn:aws:iam::123456789012:role/koordinates-s3-access.

  9. Enter your bucket name and role ARN in Koordinates

    Go back to the Connect to Amazon S3 Source window. Enter your Amazon S3 Bucket Name, and paste the role’s ARN into IAM Role ARN.

    If you only want Koordinates to scan part of the bucket, enter a Prefix. Koordinates will ignore everything outside it. Leave Prefix blank to scan the whole bucket.

    Select Next.

  10. Add a title and owning group, then select Connect

    Give the source a meaningful Title, and choose its Owning Group. Members of the owning group can configure the source, run scans and import data from it.

    Select Connect. Koordinates connects to the bucket and starts scanning it. After a few seconds you’re taken to the source, where you can import the data it finds.

To change the source’s details or connection later, open it on the Sources tab and select Settings.