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.
You need the following:
- AWS credentials in your workspace with the AWS Cloud policy attached. See AWS Cloud credentials.
- An S3 bucket for the work directory, in a supported region.
Create the compute environment
- In your Seqera workspace, select Compute Environments, then select Add compute environment.
- Enter a name and select AWS Cloud as the platform.
- If Compute mode is displayed, select Basic. All tasks run on a single instance. The option is displayed only when Intelligent Compute is enabled for your workspace. To distribute tasks across multiple instances, see Intelligent Compute on AWS.
- Select your AWS credentials. To add credentials, see AWS Cloud credentials.
- Select the Region where Seqera launches compute resources.
- Enter a Work directory (for example,
s3://my-bucket/work). The S3 bucket must be in the same region as the compute environment. - Optional: Expand Staging options and Environment variables to add pre- and post-run scripts, Nextflow configuration, or environment variables. See Common compute environment options.
- Optional: Under Advanced options, set the instance type, networking, and the other advanced options.
- 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. When Seqera Intelligent Compute selects a subnet for you, Seqera creates an S3 gateway endpoint in the VPC if one does not already exist. To create the endpoint, Seqera uses the permissions described in Seqera Intelligent Compute permissions. If you select the subnets yourself, 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.
- Seqera does not create inbound rules: Where Seqera manages a security group for you, it authorizes egress only. The policy grants
ec2:AuthorizeSecurityGroupEgressand no inbound equivalent.
For the ports and directions to configure on your firewall, see Firewall configuration.
Multiple subnets
You can select several subnets from one VPC, with or without Seqera Intelligent Compute. Seqera launches the instance that runs the Nextflow head job into the first subnet and moves to the next one only when the current subnet cannot host it:
- No capacity in the Availability Zone (
InsufficientInstanceCapacity), or instance type not offered in the zone (Unsupported): Seqera skips the remaining subnets in that zone and tries the next zone. - No free IP addresses in the subnet (
InsufficientFreeAddressesInSubnet): Seqera tries the next subnet, even in the same zone. - Any other error: The launch fails without trying other subnets.
If no subnet can host the instance, the run fails with an error that lists each subnet, its Availability Zone, and the AWS error. Select subnets in different Availability Zones so that a launch can move to another zone when one runs out of capacity. The subnet picker shows the zone of each subnet.
With Seqera Intelligent Compute, the instances that run your tasks can use any of the selected subnets.
When an Availability Zone has no capacity, Seqera retries the launch in the same subnet for up to about 25 seconds before it moves to the next subnet. For other subnet errors, Seqera moves to the next subnet at once.
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. With Seqera Intelligent Compute, the GPU AMI applies only to the instance that runs Nextflow and to Studio sessions. Seqera selects the instances and images that run your tasks.
- 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 VPC subnets the EC2 instances can launch into. All subnets must belong to the same VPC. Seqera tries them in the order you select them for the instance that runs the Nextflow head job (see Multiple subnets). Without Seqera Intelligent Compute, if you select none, the instance launches into a default subnet of the account's default VPC. With Seqera Intelligent Compute, the instances that run your tasks can use any of the selected subnets. See Networking in the Intelligent Compute guide.
- Security groups: The security groups that the EC2 instance belongs to. If unspecified, no security groups are used.
- Instance Profile: The ARN of the
InstanceProfileused 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 default AWS-managed key. See Custom instance profile for the KMS permissions the instance profile role requires. Pipeline runs on AWS Cloud compute environments use pipeline secrets only with Seqera Intelligent Compute.
- Boot disk size: The size of the EBS boot disk for the EC2 instance. If undefined, the instance uses a default 50 GB
gp3volume.
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
INVALIDor 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 environmentINVALIDand 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.
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.