Amazon EKS IAM policy
Seqera accesses your AWS account through an IAM policy attached to the role or user in your AWS credentials. Create the policy first, then create the credentials that use it. Use this policy for Amazon EKS compute environments.
Policy
Seqera Platform requires an IAM user with specific permissions to launch pipelines, explore buckets with Data Explorer, and run Studio sessions on the Amazon EKS compute environment. Some permissions are mandatory for the compute environment to function correctly. Others are optional and enable features such as populating drop-down lists in the Platform UI.
Attach permissions directly to an IAM user, or to an IAM role that the IAM user can assume.
The following broad, permissive policy includes all the required permissions for a quick start. Follow the principle of least privilege and grant only the permissions your use case needs, as shown in the statement reference.
Full permissive policy (for reference)
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EKSClusterAccessCanBeRestricted",
"Effect": "Allow",
"Action": [
"eks:DescribeCluster",
"eks:ListClusters"
],
"Resource": "*"
},
{
"Sid": "OptionalS3PlatformDataAccessCanBeRestricted",
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*",
"s3:PutObject",
"s3:PutObjectTagging",
"s3:DeleteObject"
],
"Resource": "*"
}
]
}
Create the policy in AWS
Create the policy in the AWS account where Seqera creates or uses the resources.
- Open the AWS IAM console.
- From the left navigation menu, select Policies under Access management.
- Select Create policy.
- In the Policy editor section, select the JSON tab.
- Replace the default text in the policy editor with the policy on this page, adapted to your use case, then select Next.
- On the Review and create page, enter a name and description for the policy, then select Create policy.
Next, create Amazon EKS credentials with this policy attached.
Statement reference
This section describes each statement in the policy: what Seqera uses it for, whether it is optional, and how to restrict it.
EKS cluster access
Seqera needs permissions to list EKS clusters in the selected region and to describe the selected cluster to retrieve its connection details. The eks:ListClusters action cannot be restricted to specific resources. You can restrict the eks:DescribeCluster action to the specific cluster used as the compute environment.
{
"Sid": "EKSClusterListing",
"Effect": "Allow",
"Action": [
"eks:ListClusters"
],
"Resource": "*"
},
{
"Sid": "EKSClusterDescription",
"Effect": "Allow",
"Action": [
"eks:DescribeCluster"
],
"Resource": "arn:aws:eks:<REGION>:<ACCOUNT_ID>:cluster/<CLUSTER_NAME>"
}
The IAM user needs no other permissions to launch pipelines on the EKS compute environment. The service account created during cluster preparation manages the pods and resources, which the IAM user accesses through EKS authentication. See Allow an IAM user or role access to EKS.
S3 access (optional)
Seqera automatically attempts to fetch a list of the S3 buckets available in the AWS account connected to Platform. It provides them in a drop-down, where you select the bucket to use as the Nextflow work directory when you create a compute environment. This feature is optional. You can type the bucket name manually instead. To allow Seqera to fetch the list of buckets in the account, add the s3:ListAllMyBuckets action with the Resource field set to *. The s3:ListAllMyBuckets action also allows Data Explorer to auto-discover the data repositories accessible to your workspace credentials.
Seqera products such as Studios and Data Explorer manipulate data in AWS S3 buckets. If you do not need these features, you can omit the related permissions.
You can scope the IAM policy down to allow only limited read/write permissions in the S3 buckets that Studios and Data Explorer use. For each bucket you want to browse, upload to, download from, or delete files in with Data Explorer, grant s3:GetObject, s3:PutObject, and s3:DeleteObject on the bucket objects. On the bucket itself, grant s3:ListBucket. s3:GetBucketAcl on the bucket is optional. The policy must also include permission to list the content of the S3 bucket used as the Nextflow work directory. Seqera also recommends granting the s3:GetObject permission on the work directory path to fetch Nextflow log files.
If you created a separate S3 bucket only for Nextflow work directories, the IAM user or the role it assumes needs only read access to it. The IAM role used by the EKS service account must have full read/write access to the work directory bucket for Fusion to operate correctly. See Configure EKS service account IAM role for Fusion v2.
{
"Sid": "S3CheckBucketWorkDirectory",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::example-bucket-used-as-work-directory"
]
},
{
"Sid": "S3ReadOnlyNextflowLogFiles",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::example-bucket-used-as-work-directory/path/to/work/directory/*"
]
},
{
"Sid": "S3ReadWriteBucketsForStudiosDataExplorer",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:GetObjectTagging",
"s3:GetBucketLocation",
"s3:GetBucketPolicy",
"s3:GetBucketAcl",
"s3:ListBucket",
"s3:PutObject",
"s3:PutObjectTagging",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::example-bucket-read-write-studios",
"arn:aws:s3:::example-bucket-read-write-studios/*",
"arn:aws:s3:::example-bucket-read-write-data-explorer",
"arn:aws:s3:::example-bucket-read-write-data-explorer/*"
]
}
s3:ListBucket allows Data Explorer to resolve each bucket's region and list its contents. Data Explorer omits a bucket it cannot reach with s3:ListBucket. s3:GetBucketAcl lets Data Explorer detect public buckets. Without it, Data Explorer treats every bucket as private. Data Explorer does not call s3:GetBucketLocation or s3:GetBucketPolicy. If you prefer not to enumerate individual actions, the s3:Get* and s3:List* wildcards shown in the full permissive policy also cover s3:ListBucket and s3:GetBucketAcl.