Skip to main content

AWS Cloud credentials

Seqera uses AWS credentials to access your AWS account for AWS Cloud compute environments. The role or user in the credentials must have the AWS Cloud IAM policy attached.

Prerequisites

You need the following:

Seqera supports two types of AWS credentials:

  • Role-based credentials (recommended): Seqera assumes an IAM role in your account. Seqera stores no access keys, and an External ID that Seqera generates restricts who can assume the role.
  • Key-based credentials: Seqera stores the access key and secret key of an IAM user.

Credentials created before March 2026 continue to work without changes.

Create an IAM role that Seqera Cloud can assume, add it to Seqera to generate an External ID, then add the External ID to the role's trust policy.

Create the IAM role​

  1. From the AWS IAM console, select Roles in the left navigation menu, then select Create role at the top right of the page.

  2. Select Custom trust policy as the trusted entity type in the AWS Console. Allow the Seqera Cloud access role arn:aws:iam::161471496260:role/SeqeraPlatformCloudAccessRole in your trust policy as shown in the following example, then select Next.

    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Principal": {
    "AWS": "arn:aws:iam::161471496260:role/SeqeraPlatformCloudAccessRole"
    },
    "Action": "sts:AssumeRole",
    "Condition": {
    "StringEquals": {
    "sts:ExternalId": "<EXTERNAL_ID>"
    }
    }
    },
    {
    "Effect": "Allow",
    "Principal": {
    "AWS": "arn:aws:iam::161471496260:role/SeqeraPlatformCloudAccessRole"
    },
    "Action": "sts:TagSession"
    }
    ]
    }
  3. On the Permissions page, search for and select each IAM policy you created for this setup option, then select Next.

  4. Enter a name and, optionally, a description for the role. Review the role details, optionally add tags to help you identify the role, then select Create role.

Add the credentials in Seqera​

  1. In your workspace, go to Credentials and add new credentials. You can also select + next to the Credentials drop-down when you create a compute environment.
  2. Enter a name, for example, AWS Credentials, and for Provider, select AWS.
  3. Under AWS credential mode, select Role.
  4. Paste the ARN of the IAM role in Assume role.
  5. Select Add. Seqera generates a unique External ID and displays it.

Add the External ID to the trust policy​

Return to the IAM role's trust policy in AWS and replace the <EXTERNAL_ID> placeholder with the value that Seqera generated.

Key-based credentials​

Key-based credentials use an IAM user with the IAM policy attached. Create a separate IAM policy rather than an IAM user inline policy. An inline policy allows only 2048 characters, which may not be enough for all the required permissions.

Create an IAM user​

  1. From the AWS IAM console, select Users in the left navigation menu, then select Create User at the top right of the page.
  2. Enter a name for your user (for example, seqera) and select Next.
  3. Under Permission options, select Attach policies directly, then search for and select each IAM policy you created for this setup option, and select Next.
  • Optional: To use an ARN and External ID with key-based access, add the following statement to the user's permission policy. It allows the IAM user to assume a role to manage AWS resources.
{
"Sid": "AssumeRoleToManageBatchResources",
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::<ACCOUNT_ID>:role/<IAM_ROLE_NAME>",
"Condition": {
"StringEquals": {
"sts:ExternalId": "<EXTERNAL_ID>"
}
}
}
  1. On the last page, review the user details and select Create user.

For the most up-to-date instructions to create an IAM user, see the AWS documentation.

Obtain the access keys​

To get the access keys that connect Seqera to your AWS account:

  1. From the AWS IAM console, select Users in the left navigation menu, then select the newly created user from the users table.
  2. Select the Security credentials tab, then select Create access key under the Access keys section.
  3. In the Use case dialog, select Command line interface (CLI). Select the confirmation checkbox at the bottom to acknowledge that you want to create an access key, then select Next.
  4. Optionally, enter a description for the access key, such as the reason for creating it, then select Create access key.
  5. Save the Access key and Secret access key in a secure location. You need them to create credentials in Seqera.

Add the key-based credentials in Seqera​

  1. In your workspace, go to Credentials and add new credentials. You can also select + next to the Credentials drop-down when you create a compute environment.
  2. Enter a name, for example, AWS Credentials, and for Provider, select AWS.
  3. Under AWS credential mode, select Keys.
  4. Enter the Access key and Secret key that you obtained.
  5. Optional: Paste an IAM role ARN in Assume role. See Assume a role with access keys.
  6. Select Add.
note

When you use AWS keys without an assumed role, the associated AWS user must have permissions to operate on the cloud resources directly. When you provide an assumed role, Seqera uses the IAM user keys only to retrieve temporary credentials that impersonate the specified role. This is useful when, for example, multiple IAM users access the same AWS account and the permissions to operate on the resources are granted only to the role.

Assume a role with access keys (optional)​

Instead of attaching permissions directly to the IAM user, you can create an IAM role with the required permissions and allow the IAM user to assume that role to access AWS resources. This is useful when multiple IAM users access the same AWS account, because you grant the permissions to operate on the resources to a single role.

When you paste a role ARN in Assume role in Keys mode, Seqera displays the Generate External ID switch. Generating an External ID is optional. If you select it, Seqera generates the External ID and shows it after you save the credentials.

  1. From the AWS IAM console, select Roles in the left navigation menu, then select Create role at the top right of the page.
  2. Select Custom trust policy as the type of trusted entity. Enter the following policy, set the AWS principal to the ARN of the IAM user that you created in Create an IAM user, then select Next.
    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Principal": {
    "AWS": [
    "arn:aws:iam::<ACCOUNT_ID>:user/<IAM_USER_NAME>"
    ]
    },
    "Action": "sts:AssumeRole",
    "Condition": {
    "StringEquals": {
    "sts:ExternalId": "<EXTERNAL_ID>"
    }
    }
    }
    ]
    }
  3. On the Permissions page, search for and select each IAM policy you created for this setup option, then select Next.
  4. Enter a name and, optionally, a description for the role. Review the role details, optionally add tags to help you identify the role, then select Create role.

To specify more than one user in the trust policy, add more ARNs to the Principal section.

note

Seqera Platform generates the External ID value when you create AWS credentials. For role-based credentials, use this exact value in your IAM trust policy (sts:ExternalId).

Validation​

Seqera validates credentials against AWS on a recurring schedule and marks credentials that fail as INVALID. Seqera blocks launches on compute environments whose credentials are INVALID. See Pre-flight checks.

Next step​

Create an AWS Cloud compute environment.