Skip to main content

AWS Cloud options

Reference for the supported regions, managed AMI, and custom instance profile of AWS Cloud compute environments.

Supported regions​

AWS Cloud compute environments support the following regions:

  • eu-west-1
  • us-east-1
  • us-west-2
  • eu-west-2
  • us-east-2
  • eu-central-1
  • us-west-1
  • eu-west-3
  • ap-southeast-1

Managed Amazon Machine Image (AMI)​

The AWS Cloud compute environment uses a public AMI maintained by Seqera. The pipeline launch procedure assumes that some basic tooling is already present in the image. If you provide your own AMI, it must include at least the following:

  • Docker engine, configured to run at startup.
  • CloudWatch agent.
  • The ability to shut down with the shutdown command. If this is missing, EC2 instances keep running and accumulate additional costs.

Release cadence and software updates​

The AMI is based on the Amazon Linux 2023 image. System package versions are pinned for each Amazon Linux 2023 version. Seqera subscribes to the AWS SNS topic to receive Amazon Linux 2023 update notifications. When updates are available, Seqera releases a new AMI built on the latest image. The release includes system package updates and security patches.

For GPU instance types, see GPUs.

Custom instance profile​

When you specify a custom Instance Profile ARN in Advanced options, the IAM role attached to that instance profile must include the following minimum permissions. These permissions match what Seqera provisions automatically when you do not specify an instance profile.

Trust policy​

The EC2 service must be able to assume the role:

{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Principal": {
"Service": "ec2.amazonaws.com"
}
}
}

AWS managed policies​

Attach the following AWS managed policies to the role:

PolicyPurpose
arn:aws:iam::aws:policy/CloudWatchAgentServerPolicyPush metrics and logs to CloudWatch
arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccessRead-only access to S3 (required by Fusion and Nextflow)
arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryPullOnlyPull container images from private ECR repositories

Inline policies​

In addition to the managed policies, attach the following inline policies:

S3 read/write: Grants full object access on the compute environment work directory bucket. Add one statement for each other bucket the compute environment uses: the bucket of a Nextflow global cache location, if it isn't the work directory bucket, and each bucket under Additional S3 buckets:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListObjectsInBucket",
"Effect": "Allow",
"Action": ["s3:ListBucket"],
"Resource": "arn:aws:s3:::<BUCKET_NAME>"
},
{
"Sid": "AllObjectActions",
"Effect": "Allow",
"Action": ["s3:*Object", "s3:AbortMultipartUpload"],
"Resource": "arn:aws:s3:::<BUCKET_NAME>/*"
},
{
"Sid": "AllowObjectTagging",
"Effect": "Allow",
"Action": ["s3:PutObjectTagging", "s3:GetObjectTagging"],
"Resource": "arn:aws:s3:::<BUCKET_NAME>/*"
}
]
}

List s3:AbortMultipartUpload separately because s3:*Object doesn't match it. This action lets a client abort a failed multipart upload. S3 stores the parts of an incomplete upload and bills you for them until you complete or abort the upload.

Secrets Manager: Grants access to the pipeline secrets Seqera stores in AWS Secrets Manager under the tower- prefix. Seqera creates each referenced secret when a pipeline launches and deletes it on completion:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"secretsmanager:GetSecretValue",
"secretsmanager:CreateSecret",
"secretsmanager:DeleteSecret"
],
"Resource": ["arn:aws:secretsmanager:<REGION>:*:secret:tower-*"]
},
{
"Effect": "Allow",
"Action": ["secretsmanager:ListSecrets"],
"Resource": ["*"]
}
]
}

If the compute environment specifies a Pipeline secrets KMS key, the role also requires kms:Decrypt on that key to read secrets encrypted with the key at task start. Grant the action either by naming the role in the key policy, or in the role's own IAM policy if the key policy delegates to IAM. The default key policy created by aws kms create-key delegates to IAM:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PipelineSecretsKmsKey",
"Effect": "Allow",
"Action": ["kms:Decrypt"],
"Resource": "arn:aws:kms:<REGION>:<ACCOUNT_ID>:key/<KEY_ID>"
}
]
}

KMS for S3: Required if any of the S3 buckets used by the compute environment are encrypted with a customer-managed KMS key (SSE-KMS):

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "KmsS3Read",
"Effect": "Allow",
"Action": ["kms:Decrypt", "kms:DescribeKey"],
"Resource": "arn:aws:kms:*:*:key/*",
"Condition": {
"StringLike": { "kms:ViaService": "s3.*.amazonaws.com" }
}
},
{
"Sid": "KmsS3Write",
"Effect": "Allow",
"Action": ["kms:Encrypt", "kms:ReEncrypt*", "kms:GenerateDataKey*"],
"Resource": "arn:aws:kms:*:*:key/*",
"Condition": {
"StringLike": { "kms:ViaService": "s3.*.amazonaws.com" }
}
}
]
}
note

If your AWS account enforces EBS volume encryption at the account level, the EC2 instance uses a KMS key to encrypt its boot volume. Account-level enforcement comes from either account default encryption settings or a service control policy (SCP) that requires encrypted=true on RunInstances. In this case, the instance role must also have kms:Decrypt, kms:GenerateDataKey, kms:CreateGrant, and kms:DescribeKey permissions on the relevant KMS key. The KMS for S3 policy does not include these permissions because it is scoped to S3 only. Contact your AWS administrator to identify the correct KMS key ARN and add the permissions.

When you use a custom instance profile, Seqera does not create or manage the IAM role. You are responsible for keeping it up to date as requirements change.