Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect AWS S3 Bucket

You can use your own S3 bucket (unversioned, versioned, versioning-suspended) with Illumina BioInsight Platform Core for data storage. This section describes how to configure your AWS account to allow Platform Core to connect to an S3 bucket.

Connect AWS S3 Bucket to Platform Core Project

Prerequisite

AWS CLI

These instructions utilize the AWS CLI. Follow the AWS CLI documentation for instructions to download and install.

Pay-as-you-go

The pay-as-you-go tier does not include the option to connect your own S3 storage. To connect your own S3 storage in combination with pay-as-you-go, please purchase Enhanced or Premium support.

Best Practices

Do not use the root folder of your S3 storage

Service Control Policies & Resource Control Policies

When configuring cross-account access for Bring Your Own Bucket (BYOB), organisational policy layers Service Control Policies (SCPs) and Resource Control Policies (RCPs) can prevent access even when the bucket policy is valid.

For cross-account S3 requests, AWS evaluates permissions in the following order:

  1. Source Account Service Control Policies determine which actions the principal is allowed to perform, regardless of the destination resource.

  2. Destination Account Resource Control Policies determine what external principals can do on resources within that account and act as a control layer above the bucket policy.

  3. Bucket Policy and Identity-Based Policies are evaluated only after both SCP and RCP checks pass. This means that an explicit Deny, or the absence of a required Allow, in either the SCP or RCP results in an immediate final denial and the bucket policy is not evaluated.

Clean up Incomplete Multipart Uploads

Multipart uploads store their parts in the S3 storage bucket until the upload is either completed or aborted. If a multipart upload can not complete, these parts continue to incur storage costs until they are deleted. Those parts are billed as normal S3 storage and do not appear as regular objects in the console.Those parts are billed as normal S3 storage and do not appear as regular objects in the console. To minimise storage costs, any multipart upload that has not completed within 7 days after initiation should be cleaned up.

To automaticlly clean up incompleted uploads after 7 days, follow the procedure described in the AWS S3 user guide.

You can check for existing incomplete uploads with the following AWS command:

Configuration

You can use either IAM User or IAM Role for setting the permissions with IAM Role offering better security for connecting to your own S3 storage.

IAM User

IAM user uses long-term credentials to connect external systems to your S3 storage. These credentials (access_key_id and secret_access_key) have to be kept secure and should be regularly rotated, which requires updating the keys in all systems that use these keys.

IAM Role

IAM roles do not use long-term credentials. Instead temporary (12 hours) security permissions are provided when external systems assume the role. A permission policy determines which actions are allowed and a trust policy determines who (which software) can assume the role. When Platform Core requests to assume the role, the trust policy is checked to see if Platform Core is allowed to assume the role and if allowed, short-lived credentials are provided so Platform Core can borrow the permissions for that role.

You can enable SSE using an Amazon S3-managed key (SSE-S3). Instructions for using KMS-managed (SSE-KMS) keys are found here.

Considerations

Synchronization

S3 region

The AWS S3 bucket must exist in the same AWS region as the Platform Core project. See the table below for a mapping of Platform Core project regions to AWS regions:

Platform Core Project Region
AWS Region

Australia (AU)

ap-southeast-2

Canada (CA)

ca-central-1

Germany (EU)

eu-central-1

India (IN)

ap-south-1

Indonesia (ID)

ap-southeast-3

Israel (IL)

il-central-1

Japan (JP)

ap-northeast-1

Singapore (SG)

ap-southeast-1

South Korea* (KR)

ap-northeast-2

United Arab Emirates (AE)

me-central-1

UK (GB)

eu-west-2

United States (US-N. Virginia)

us-east-1

United States (US-Oregon)

us-west-2

(*) BSSH is not currently deployed on the South Korea instance, resulting in limited sequencer integration functionality in this region.

Versioned S3 Buckets

You can use unversioned (only one copy of an object exists), versioned (writing creates new versions) and suspended (versioning paused) buckets as own S3 storage.

If you connect buckets with object versioning, the data in Platform Core will be automatically synced with the data in object store. When an object is deleted without specifying a particular version, a Delete marker is created on the objectstore to indicate that the object has been deleted. Platform Core will reflect the object state by deleting the record from the database. No further action on your side is needed to sync.

Last updated

Was this helpful?