Skip to main content
Version: 26.2

Create an AWS Cloud compute environment

Create an AWS Cloud compute environment, which runs each pipeline or Studio session on a single EC2 instance. For everything you need in place first, see the checklist.

Prerequisites

You need the following:

Create the compute environment​

  1. In your Seqera workspace, select Compute Environments, then select Add compute environment.
  2. Enter a name and select AWS Cloud as the platform.
  3. Select your AWS credentials. To add credentials, see AWS Cloud credentials.
  4. Select the Region where Seqera launches compute resources.
  5. Enter a Work directory (for example, s3://my-bucket/work). The S3 bucket must be in the same region as the compute environment.
  6. Optional: Expand Staging options and Environment variables to add pre- and post-run scripts, Nextflow configuration, or environment variables. See Common compute environment options.
  7. Optional: Under Advanced options, set the instance type, networking, and the other advanced options.
  8. Select Add.

Networking​

An AWS Cloud compute environment launches a single EC2 instance into a VPC subnet. Set VPC ID, Subnets, and Security groups under Advanced options.

  • Outbound access is required: The instance must reach Amazon S3 for the work directory, and Seqera Platform. A private subnet (one that does not auto-assign a public IP address) reaches S3 only through an S3 gateway endpoint or a NAT gateway. If you select a private subnet, provide that route.
  • Studio sessions are outbound-only: The Seqera Connect client inside a Studio session opens a tunnel outward to the Connect server. All session traffic, including SSH when enabled, travels over that outbound connection. No inbound path to the session VM is required. You do not need inbound security group rules or source-IP allowlists for dynamically launched Studio instances. The subnet does need outbound access to the Connect server. See Networking in the Studios documentation.

For the ports and directions to configure on your firewall, see Firewall configuration.

GPUs​

When you create a compute environment with an NVIDIA GPU instance type, such as g4dn, g5, g6, p4, or p5, Platform selects the Seqera-maintained GPU AMI instead of the standard AMI. The GPU AMI includes NVIDIA drivers. You do not need to enable GPUs or specify an AMI ID, and Studio sessions on the compute environment can use all the GPUs on the instance.

  • Platform supports NVIDIA GPUs only. Do not select an instance type with a non-NVIDIA GPU, such as g4ad (AMD).
  • The GPU AMI is x86_64 only. Platform does not support Graviton (ARM64) GPU instance types, such as g5g.
  • A custom AMI ID under Advanced options always overrides automatic selection. Your AMI must include an NVIDIA driver that is compatible with the CUDA runtime of your containers, and the NVIDIA Container Toolkit, configured as the default Docker runtime.

GPU metrics​

Seqera collects GPU metrics for tasks that run on NVIDIA GPU instances in any compute environment with Fusion enabled. See GPU metrics.

Advanced options​

  • Pipeline work directory: The S3 path where Nextflow stores intermediate pipeline files. The S3 bucket must be in the same region as the compute environment. Platform rejects the compute environment at creation time if the bucket region does not match.
  • Instance Type: The EC2 instance type used by the compute environment. The instance type determines the CPU and memory available for computation. See EC2 instance types for a list of instance types and their resource limitations. NVIDIA GPU instance types automatically use the Seqera GPU AMI. See GPUs.
  • Graviton architecture: Enables the use of Graviton instances. AWS Graviton processors, based on the ARM64 architecture, tend to offer a better performance-to-price ratio. The tooling used by your pipelines must be compatible with the ARM architecture. Platform does not support Graviton GPU instance types.
  • AMI ID: The ID of the AMI used to launch the EC2 instance. Use Seqera-maintained AMIs for best performance. A custom AMI ID overrides automatic GPU AMI selection.
  • Key pair: The EC2 key pair that enables SSH connectivity to the running instance. If unspecified, the running EC2 instance has no SSH key.
  • VPC ID: The ID of the VPC where Seqera launches the EC2 instance. If unspecified, Seqera uses the default VPC.
  • Subnets: The list of VPC subnets where the EC2 instance will run. If unspecified, all the subnets of the VPC will be used.
  • Security groups: The security groups that the EC2 instance belongs to. If unspecified, no security groups are used.
  • Instance Profile: The ARN of the InstanceProfile used by the EC2 instance to assume a role while running. If unspecified, Seqera provisions one with enough permissions to run. See Custom instance profile for the minimum permissions required if you provide your own.
  • Pipeline secrets KMS key: A customer-managed KMS key (CMK) that encrypts the temporary AWS Secrets Manager secrets Seqera creates for runs that use pipeline secrets. This field accepts a key ARN or a key ID. A key ARN must be in the same region as the compute environment. If unspecified, Seqera uses the installation default set with TOWER_AWS_SECRETS_KMS_KEY_ID, or the default AWS-managed key if neither is set. See Custom instance profile for the KMS permissions the instance profile role requires.
  • Boot disk size: The size of the EBS boot disk for the EC2 instance. If undefined, the instance uses a default 50 GB gp3 volume.

Pre-flight checks​

Pre-flight checks confirm that a compute environment is usable before you launch a pipeline. Seqera runs them at three points:

  • When you create the compute environment: Seqera rejects the request if the selected credentials are INVALID or have been deleted. Seqera also rejects the request if the work directory bucket is not in the same region as the compute environment.
  • On a recurring schedule: Seqera re-checks the compute environment. If its credentials are INVALID, Seqera marks the compute environment INVALID and shows a banner with the error message.
  • Each time you launch a pipeline: Seqera blocks the launch if the compute environment or its credentials are INVALID, or if Wave is enabled and the Wave service connection is not active.

To clear an INVALID status, fix the cause, then open the ⋮ menu of the compute environment and select Validate. If the credentials are also INVALID, validate the credentials first.

A brief Wave reconnection does not block a launch. If the Wave connection stays down, Seqera blocks the launch but does not mark the compute environment INVALID. See Wave service connection is not active.

Pre-flight checks are on by default. To disable them, an administrator sets both flags in Feature flags to false.

See Pre-flight checks for how Seqera validates credentials and compute environments, and Pre-flight checks troubleshooting for error messages.

Next steps​

To run pipelines in your AWS Cloud compute environment, see Launch pipelines.