> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Permissions reference

> Every IAM role and identity an e6data In-VPC install on AWS uses, with each permission, its scope and why it is needed.

ReferenceApplies to: CloudPrem on AWS

This page lists every cloud role and identity an e6data In-VPC install uses, each permission it holds, the scope, and why. Your team creates all of them; e6data software never creates or changes roles at runtime. Two roles pass roles: the installer passes each workspace role to EKS Pod Identity, and Karpenter passes the node role to new instances.

This is the single home for cloud permissions. Other pages link here instead of repeating the lists. To shrink these permissions further, see [Least privilege](https://docs.e6data.com/platform/deploy/aws-cloudprem/least-privilege.md).

## Requirements

* Every e6data workload gets cloud access through a Kubernetes service account mapped to an IAM role: EKS Pod Identity or IRSA.
* No e6data workload identity holds permission to create identities, roles or role assignments. The installer needs `iam:PassRole` on each mapped role (to `pods.eks.amazonaws.com`) even when your identity team creates the roles, and the Karpenter role holds `iam:PassRole` on the node role.
* No e6data person gets access to your AWS account.
* New role assignments take a few minutes to apply. A cluster started too early fails with `E6_CLUSTER_CLOUD_PERMISSION_DENIED`; start it again a few minutes later.

## Summary: who needs what

| Purpose | AWS | Required? |
| - | - | - |
| Query engines, metadata, catalog reads | Engine role | Yes |
| e6data console (cluster sizing, health checks) | Console role | Yes |
| Copilot / Metriq | App role | Only if used |
| Adding and removing machines | Karpenter role (or your autoscaler) | Yes, one of them |
| Nodes joining the cluster, pulling images | Node role | Yes |
| Cluster networking | EKS cluster role, VPC CNI | Yes (cloud-managed) |
| Load balancer | AWS Load Balancer Controller role | Only if e6data creates the load balancer |
| Disks | EBS CSI driver role | Yes |
| TLS with Let's Encrypt | cert-manager DNS role | Only with Let's Encrypt |
| Running the install | Installer role | During install only |

## Roles on AWS (EKS)

Placeholders: `<ws>` is the workspace name; `<prefix>` is the name prefix your install uses; `<cluster>` is your EKS cluster name. The workspace namespace is shown as `<ws>`; in e6data's install it is often `<tenant>-<workspace>`. Trust for the engine, console, app, Karpenter, load balancer and EBS CSI roles is `pods.eks.amazonaws.com` with `sts:AssumeRole` and `sts:TagSession` (EKS Pod Identity). IRSA (web-identity trust and a service account annotation) also works in place of Pod Identity.

### Engine role

Name: `<prefix>-<ws>-engine-access-role`. Used by the query engines (planner, queue, executor), metadata services and Laminar.

| Permission | Scope | Purpose |
| - | - | - |
| `s3:GetObject`, `s3:GetObjectVersion`, `s3:PutObject`, `s3:DeleteObject`, `s3:ListBucket`, `s3:AbortMultipartUpload` | e6data metadata bucket `<ws>-metadata` and its objects | Query history, results, workspace metadata |
| `s3:GetObject`, `s3:ListBucket` | Your data buckets and prefixes | Read your tables |
| `glue:GetDatabase`, `glue:GetDatabases`, `glue:GetTable`, `glue:GetTables`, `glue:GetPartition`, `glue:GetPartitions`, `glue:BatchGetPartition`, `glue:GetCatalogImportStatus` | Glue catalog, and the databases and tables you query | Read table definitions (only if you use AWS Glue) |
| `kms:Decrypt`, `kms:GenerateDataKey`, `kms:DescribeKey` | Your KMS key | Read and write data encrypted with your key (only with a customer-managed key) |
| `sts:AssumeRole`, `sts:TagSession` | The data-owner role ARN in your data account | Cross-account data and Glue access (only if data is in another account) |

If a catalog uses Lake Formation, the engine role also needs `lakeformation:ListPermissions` (in the role and in any permission boundary) and must be a Lake Formation read-only admin. Lake Formation has been seen to control which schemas a user sees but not block a table that wasn't granted, so don't rely on Lake Formation table-level deny yet.

`s3:GetBucketLocation` on your data buckets is optional. e6data's standard data-access setup lists it, but only on object paths, where AWS never applies a bucket-level action, and data reads work. Grant it on the bucket ARN if your own policy standard expects it.

> [!WARNING]
>
> Both e6data's managed install and the documented install steps grant `sts:AssumeRole` and `sts:TagSession` on `Resource: "*"` today. This is not needed for same-account data: same-account deployments work with no `sts:AssumeRole` at all. For cross-account data, scope it to the one data-owner role ARN.

### Console role

Name: `<prefix>-<ws>-console-access-role`.

| Permission | Scope | Purpose |
| - | - | - |
| `s3:GetObject`, `s3:GetObjectVersion`, `s3:PutObject`, `s3:DeleteObject`, `s3:ListBucket`, `s3:AbortMultipartUpload` | e6data metadata bucket and its objects | Workspace metadata |
| `ec2:DescribeInstanceTypes` | No scope (`*`) | Check which machine types exist in your region for cluster sizing. The console fails to start without it |
| `ec2:DescribeInstanceTypeOfferings` | No scope (`*`) | Optional: used only by health checks |
| `ec2:DescribeVpcEndpoints`, `ec2:DescribeInstances` | No scope (`*`) | Find VPC endpoints and running instances for health checks |
| Optional health checks: `ec2:DescribeSubnets`, `ec2:DescribeSecurityGroups`, `ec2:DescribeNetworkInterfaces`, `ec2:DescribeAvailabilityZones`, `ec2:DescribeRouteTables`; `cloudwatch:GetMetricData`; `health:DescribeEvents` | No scope (`*`) | Read-only. Subnet free IPs, outbound routes, vCPU usage and AWS service issues. A missing permission shows the check as "couldn't check" and never blocks a cluster start. `health:DescribeEvents` only answers on AWS Business support plans or higher |
| Optional health check: `servicequotas:GetServiceQuota` | `arn:aws:servicequotas:*:*:ec2/*` and `arn:aws:servicequotas:*:*:vpc/*` | Read your vCPU and network interface quotas |
| `eks:DescribeCluster`, `eks:ListPodIdentityAssociations`, `eks:DescribePodIdentityAssociation` | Your EKS cluster and its Pod Identity associations | Check the cluster and identity mappings |
| `kms:Decrypt`, `kms:GenerateDataKey`, `kms:DescribeKey` | Your KMS key | Only with a customer-managed key |

The console role doesn't assume the data-owner role; for cross-account data only the engine role does.

AWS does not support resource-level permissions for the `ec2:Describe*` actions. Among the engine, console and app roles' required permissions, they are the only `Resource: "*"` statements; the optional health checks and the Karpenter role also use `*` where noted.

### App role

Name: `<prefix>-<ws>-app-access-role`. Only needed with Copilot or Metriq.

| Permission | Scope | Purpose |
| - | - | - |
| `s3:GetObject`, `s3:GetObjectVersion`, `s3:PutObject`, `s3:DeleteObject`, `s3:ListBucket`, `s3:AbortMultipartUpload` | e6data metadata bucket and its objects | App data |
| `secretsmanager:GetSecretValue`, `secretsmanager:DescribeSecret` | Secret `copilot-metriq-secret-*` in your account | Read the app's own AI-provider settings from your AWS Secrets Manager |
| `kms:Decrypt`, `kms:GenerateDataKey`, `kms:DescribeKey` | Your KMS key | Only with a customer-managed key |

### Pod Identity associations

| Namespace / service account | Role |
| - | - |
| `<ws>` / `<ws>-engine` | Engine role |
| `<ws>` / `<ws>-laminar` | Engine role |
| `<ws>` / `<ws>-console` | Console role |
| `<ws>` / `<ws>-copilot` | App role |
| `<ws>` / `<ws>-metriq` | App role |
| `kube-system` / `karpenter` | Karpenter role |
| `kube-system` / `aws-load-balancer-controller` | Load balancer controller role |
| `kube-system` / `ebs-csi-controller-sa` (EBS CSI add-on) | EBS CSI driver role. e6data's own install maps it with IRSA; Pod Identity also works |

### Karpenter role

Name: `<cluster>-karpenter-role`. Only if Karpenter adds your nodes. With Cluster Autoscaler, your autoscaler's own role does this instead.

| Permission | Scope in the install steps | Narrower scope | Purpose |
| - | - | - | - |
| `ec2:CreateFleet`, `ec2:RunInstances`, `ec2:TerminateInstances`, `ec2:CreateLaunchTemplate`, `ec2:DeleteLaunchTemplate`, `ec2:CreateTags` | `*` | `*` | Launch, tag and remove engine nodes |
| `ec2:DescribeAvailabilityZones`, `ec2:DescribeImages`, `ec2:DescribeInstances`, `ec2:DescribeInstanceTypeOfferings`, `ec2:DescribeInstanceTypes`, `ec2:DescribeLaunchTemplates`, `ec2:DescribeSecurityGroups`, `ec2:DescribeSpotPriceHistory`, `ec2:DescribeSubnets` | `*` | `*` (AWS has no resource-level scope for these) | Pick subnets, images and machine types |
| `eks:DescribeCluster` | `*` | Your cluster ARN | Read the cluster endpoint and settings |
| `iam:PassRole` | `*` | The node role ARN | Attach the node role to new instances |
| `iam:GetInstanceProfile`, `iam:ListInstanceProfiles` | `*` | `*` | Read the node instance profile |
| `iam:CreateInstanceProfile`, `iam:DeleteInstanceProfile`, `iam:AddRoleToInstanceProfile`, `iam:RemoveRoleFromInstanceProfile`, `iam:TagInstanceProfile` | `*` | Leave out | Only needed if Karpenter manages instance profiles itself. The e6data EC2NodeClass names the instance profile you create (`<cluster>-karpenter`), so these can be left out |
| `pricing:GetProducts` | `*` | `*` | Choose the cheapest machine that fits |
| `ssm:GetParameter` | `*` | `arn:aws:ssm:*:*:parameter/aws/service/*` | Look up the current EKS node image from AWS's public parameters |
| `sqs:DeleteMessage`, `sqs:GetQueueAttributes`, `sqs:GetQueueUrl`, `sqs:ReceiveMessage` | Queue `<cluster>-karpenter` | Same | Receive Spot interruption and instance events |

The narrower scopes are the ones e6data uses on the clusters it runs itself.

With e6data's own Karpenter build on AWS, the Karpenter role also needs `ec2:StartInstances`, `ec2:StopInstances` and `ec2:DeleteTags` (stop and start machines), and `ssm:SendCommand`, `ssm:GetCommandInvocation` and `ssm:ListCommandInvocations` (prepare a stopped machine to rejoin the cluster when it starts). The upstream Karpenter in the documented install steps needs none of these.

### Node role

Name: `<cluster>-eks-node-role`.

| Permission | Scope | Purpose |
| - | - | - |
| AWS managed `AmazonEKSWorkerNodePolicy` | AWS-defined | Nodes join the cluster |
| AWS managed `AmazonEKS_CNI_Policy` | AWS-defined | Pod networking (VPC CNI) |
| AWS managed `AmazonEC2ContainerRegistryReadOnly` | AWS-defined | Pull e6data images from e6data's Amazon ECR |
| AWS managed `AmazonSSMManagedInstanceCore` | AWS-defined | Lets nodes register with AWS Systems Manager. Optional with upstream Karpenter, Cluster Autoscaler or managed node groups: nothing in the standard install uses it. Required with e6data's own Karpenter build, which uses Systems Manager Run Command on parked nodes. Also gives your team Session Manager access to nodes |

The node role trusts `ec2.amazonaws.com`. It is also added to the Karpenter instance profile. With EKS access entries only (no `aws-auth` ConfigMap), give the node role an `EC2_LINUX` access entry.

### Other cluster roles

| Role | Permission | Scope | Purpose |
| - | - | - | - |
| EKS cluster role (new cluster only; trusts `eks.amazonaws.com`) | AWS managed `AmazonEKSClusterPolicy`. e6data's own install also attaches `AmazonEKSVPCResourceController`, which is optional (needed only for security groups for pods; a least-privilege install works without it) | AWS-defined | Run the EKS control plane |
| EBS CSI driver role | AWS managed `AmazonEBSCSIDriverPolicy` | AWS-defined | Create the gp3 volumes |
| AWS Load Balancer Controller role | The IAM policy published by the controller project, attached inline (pin it to your controller version) | Defined by the controller project | Create the query endpoint load balancer. Not needed if you bring your own load balancer |
| cert-manager DNS role (`<cluster>-cert-manager-role`, service account `cert-manager/cert-manager`) | `route53:ChangeResourceRecordSets`, `route53:ListResourceRecordSets` | Your hosted zone (`arn:aws:route53:::hostedzone/<zone-id>`) | Publish the DNS validation TXT record. Only with Let's Encrypt |
| | `route53:GetChange` | `arn:aws:route53:::change/*` | Wait for the record change to apply |
| | `route53:ListHostedZones`, `route53:ListHostedZonesByName` | No scope (`*`) | Find the hosted zone |
| Cluster Autoscaler role | Read: `autoscaling:DescribeAutoScalingGroups`, `autoscaling:DescribeAutoScalingInstances`, `autoscaling:DescribeLaunchConfigurations`, `autoscaling:DescribeScalingActivities`, `ec2:DescribeImages`, `ec2:DescribeInstanceTypes`, `ec2:DescribeLaunchTemplateVersions`, `eks:DescribeNodegroup` | No scope (`*`) | Find node groups and their machine shapes |
| | Change: `autoscaling:SetDesiredCapacity`, `autoscaling:TerminateInstanceInAutoScalingGroup` | Your Auto Scaling groups (by ARN, or a condition on the group's `k8s.io/cluster-autoscaler/<cluster>` tag) | Scale node groups up and down. Only if you use Cluster Autoscaler instead of Karpenter |

eksctl's built-in autoscaler policy holds these Cluster Autoscaler actions. The list matches the Cluster Autoscaler project's recommended policy.

> [!WARNING]
>
> Pin the AWS Load Balancer Controller IAM policy to the controller version you install. The public guide downloads it from the project's main branch, which changes over time.

### Installer

The person or pipeline running the install. The public guide asks for IAM administrator rights. For an install into an existing cluster, this 18-action policy is enough; every install step passes with it:

| Permission | Scope | Purpose |
| - | - | - |
| `sts:GetCallerIdentity` | No scope (`*`) | Check who is running the install |
| `s3:CreateBucket`, `s3:ListBucket`, `s3:PutBucketTagging`, `s3:PutBucketPublicAccessBlock`, `s3:PutBucketVersioning`, `s3:PutEncryptionConfiguration`, `s3:PutBucketPolicy`, `s3:GetBucketPolicy` | The metadata bucket ARN (e6data's install names it `<ws>-metadata`; the public guide uses `e6-<ws>-metadata`, which `arn:aws:s3:::e6-*-metadata` matches) | Create and secure the metadata bucket |
| `iam:CreateRole`, `iam:GetRole`, `iam:PutRolePolicy`, `iam:TagRole` | Roles named `*-engine-access-role`, `*-console-access-role`, `*-app-access-role` | Create the workspace roles |
| `iam:PassRole` | The same three roles, with condition `iam:PassedToService = pods.eks.amazonaws.com` | Map the roles to service accounts |
| `eks:ListPodIdentityAssociations`, `eks:CreatePodIdentityAssociation`, `eks:DescribePodIdentityAssociation`, `eks:TagResource` | Your cluster and its Pod Identity associations | Create the Pod Identity associations |

If your identity team creates the roles, the installer can drop `iam:CreateRole`, `iam:GetRole`, `iam:PutRolePolicy` and `iam:TagRole`, but still needs `iam:PassRole` on each role (to `pods.eks.amazonaws.com`) to create the Pod Identity associations. Creating a new VPC, EKS cluster and Karpenter needs more rights: a least-privilege (non-admin) deployment policy has created and removed a new VPC, NAT gateway, EKS cluster, add-ons, Karpenter, the AWS Load Balancer Controller, cert-manager, the operator and a workspace with no denied call.

### Installer permissions for a new cluster

A role that can only manage EKS is not enough to run the install steps ([Configure registry, VPC, EKS, and networking](https://docs.e6data.com/platform/deploy/aws-cloudprem/configure-registry-vpc-eks-networking.md)). A role with EKS, EC2/VPC, S3, ELB, `iam:AttachRolePolicy` and `iam:PassRole` but nothing else could not install. Besides those, the installer needs:

| Permission | Scope | Purpose |
| - | - | - |
| `iam:CreateRole`, `iam:PutRolePolicy`, `iam:TagRole`, `iam:GetRole` | Roles named with your install prefix (cluster, node, Karpenter, load balancer controller, EBS CSI and the workspace roles) | Create the cluster and workspace roles |
| `iam:CreateInstanceProfile`, `iam:AddRoleToInstanceProfile` | Instance profiles with your install prefix | Node and Karpenter instance profiles |
| `iam:CreateOpenIDConnectProvider`, `iam:TagOpenIDConnectProvider` | The cluster's OIDC provider | Cluster identity provider |
| `sqs:CreateQueue`, `sqs:SetQueueAttributes`, `sqs:TagQueue` | The Karpenter interruption queue (your prefix) | Spot and maintenance events for Karpenter |
| `events:PutRule`, `events:PutTargets` | Rules with your prefix | Feed the interruption queue |
| For teardown: `iam:DeleteRole`, `iam:DeleteRolePolicy`, `iam:DetachRolePolicy`, `iam:RemoveRoleFromInstanceProfile`, `iam:DeleteInstanceProfile`, `iam:DeleteOpenIDConnectProvider`, `sqs:DeleteQueue`, `events:RemoveTargets`, `events:DeleteRule` | The same resources | Remove everything the install created ([Delete a workspace](https://docs.e6data.com/platform/deploy/aws-cloudprem/delete-workspace.md)) |

Scope every row to your install's name prefix (for example `arn:aws:iam::<account>:role/<prefix>-*`). An explicit deny on `iam:DeleteRole` lets the install run but blocks a clean teardown.

### What e6data grants on its side

* Pull access on e6data's Amazon ECR for your AWS account ID.

## Preflight check

Read-only:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
aws iam get-role --role-name <prefix>-<ws>-engine-access-role
aws iam simulate-principal-policy --policy-source-arn <engine-role-arn> \
  --action-names s3:GetObject iam:CreateRole sts:AssumeRole \
  --resource-arns arn:aws:s3:::<ws>-metadata/*
aws eks list-pod-identity-associations --cluster-name <cluster> --namespace <ws>
```

Expected: `s3:GetObject` is `allowed`; `iam:CreateRole` is `implicitDeny` or `explicitDeny`. Fix: add the missing statement from the tables above.

## Verify

1. Resume a cluster from the e6data console. It reaches **Running**.
2. Run a query in the SQL Editor on your data. It succeeds.
3. Open **Query History** and select refresh. The query is listed.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Console pod restarts or crash-loops | Console role lacks `ec2:DescribeInstanceTypes` | Add it to the console role |
| Catalog refresh or query fails with access denied | Engine role lacks read on the data bucket or Glue database | Add the read permission for that resource |
| Query history, results or saved sheets go missing | Engine role can't write the metadata bucket | Check the metadata bucket permission |
| Cross-account catalog fails | Missing `sts:TagSession`, or the permission boundary denies `sts:AssumeRole` on the data-owner role | Allow both actions on that one role ARN in the role and the boundary |

## See also

* [Least privilege](https://docs.e6data.com/platform/deploy/aws-cloudprem/least-privilege.md)
* [Your organization's policies](https://docs.e6data.com/platform/deploy/aws-cloudprem/organization-policies.md)
* [Kubernetes permissions](https://docs.e6data.com/platform/deploy/aws-cloudprem/kubernetes-permissions.md)
* [What e6data can access](https://docs.e6data.com/platform/trust/what-e6data-can-access.md)
* [Encryption at rest](https://docs.e6data.com/platform/trust/encryption-at-rest.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.