> ## 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.

# Preflight checks

> Check your AWS account, network and EKS cluster are ready for e6data before the install, using a readiness checklist and read-only commands.

How-to guideApplies to: CloudPrem on AWS

Complete this checklist before any install step. Each item says how to check it and what to do if it fails. The check IDs (such as A-03 or N-01) point to the read-only commands in [Run the preflight commands](#run-the-preflight-commands) further down this page.

> [!WARNING]
>
> Quota increases and firewall changes are the two items that delay installs most. Quota increases can take time. Start both first.

## How to use this page

1. Work through each group in the checklist. Tick an item only when its check passes.
2. For any item you can't tick, apply the fix in the item, or write down why it doesn't apply.
3. Run the preflight commands and record one line per check: `PASS`, `WARN` or `FAIL`, the value seen, and the fix.
4. Send the results to e6data with the details listed in [Prerequisites](https://docs.e6data.com/platform/deploy/aws-cloudprem/prerequisites.md).

## Readiness checklist

### 1. Cloud account

* [ ] **One AWS account chosen for e6data.** Check: A-01. If it fails: agree the account with your cloud team before anything else.
* [ ] **Region chosen, and it is the region of your data.** Pick the region where your data buckets are. Check: A-01. If it fails: you can run in another region, but cross-region transfer is charged per GB and adds latency. See [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md).

### 2. Quotas and machine types

* [ ] **vCPU quota covers your planned cluster sizes.** On-Demand (and Spot, if used) vCPU quota. Check: A-02. If it fails: request an increase in Service Quotas. Use the vCPU totals on [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md).
* [ ] **The machine types in your release are offered in your region and zones.** e6data's default release uses arm64 (Graviton) machines. x86 engine machines are supported with an x86 release from e6data. Check: A-03. If it fails: choose another region or zone, or ask e6data for an alternative type.

### 3. Network

* [ ] **Node subnets with enough free IPs.** At least 2 private node subnets in different zones. Check: A-04. If it fails: add or enlarge subnets. Sizes are on [IP address sizing](https://docs.e6data.com/platform/deploy/aws-cloudprem/ip-address-sizing.md).
* [ ] **VPC DNS resolution and DNS hostnames are on.** Check: A-05. If it fails: turn both on for the VPC.
* [ ] **An S3 gateway endpoint is in the node subnets' route tables.** Check: A-06. If it fails: add one. It is required when there is no NAT gateway.
* [ ] **With no NAT gateway: the interface endpoints exist** (ECR, STS, EC2, EKS Pod Identity, and Glue or Lake Formation if used), or your firewall allows those APIs. Check: A-06b. If it fails: create the endpoints. See [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md).
* [ ] **Outbound HTTPS reaches every required host.** Check: N-01. If it fails: allow the hosts on [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md) in your firewall or proxy.
* [ ] **Hosts you deny are rejected at once, not silently dropped.** Check: N-02. If it fails: configure the firewall or proxy to reject (for example HTTP 403 or a TCP reset). A silent drop makes the e6data console restart in a loop.
* [ ] **The Kubernetes service range doesn't overlap any network the pods must reach.** Check: A-08. If it fails: the range can't be changed on an existing cluster. Use a new cluster with a free range.

### 4. Permissions

* [ ] **The person or pipeline running the install has the install permissions.** Check: A-07. If it fails: grant the permissions on [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md).
* [ ] **You can run kubectl against the cluster with the rights the install needs.** Check: K-01. If it fails: grant the Kubernetes rights on [Kubernetes permissions](https://docs.e6data.com/platform/deploy/aws-cloudprem/kubernetes-permissions.md), or plan the namespace-only option on [In-VPC deployment options](https://docs.e6data.com/platform/deploy/in-vpc-options.md).

### 5. Cluster (only if you use an existing EKS cluster)

* [ ] **Kubernetes version is supported.** 1.29 to 1.36 for the operator; 1.29 to 1.35 with e6data's Karpenter. Check: A-08. If it fails: upgrade the cluster first. Versions older than 1.29 are not supported.
* [ ] **OIDC issuer and the EKS Pod Identity Agent add-on are on.** Check: A-08. If it fails: turn them on. These two fail silently if they are off.
* [ ] **The API server can reach the operator webhook on TCP 9443.** Check: A-09. If it fails: allow 9443 from the cluster security group to the node security group. Without it, every e6data change fails after 10 seconds. If your nodes use the EKS-managed cluster security group (the EKS default, and e6data's install), this already passes.
* [ ] **You know which add-ons are already installed** (cert-manager, Karpenter or another node autoscaler, AWS Load Balancer Controller, KEDA, VPA, metrics-server) **and your default StorageClass.** e6data's install adds KEDA and VPA cluster-wide (on by default, can be turned off) and makes its own `gp3` StorageClass the cluster default. It relies on the metrics-server EKS add-on. Check: K-02. If it fails: nothing fails here. Tell e6data what you run, so the install reuses or skips it.

### 6. Org policies and admission

* [ ] **Org policies allow e6data's machine launches.** SCPs, tag policies, approved AMIs. Check: A-10. If it fails: add your required tags and images to the e6data node settings, or add an exemption. See [Organization policies](https://docs.e6data.com/platform/deploy/aws-cloudprem/organization-policies.md).
* [ ] **Admission policies admit e6data pods.** Pod Security, Kyverno, Gatekeeper. Check: K-03 and K-04. If it fails: see [Pod security](https://docs.e6data.com/platform/deploy/aws-cloudprem/pod-security.md).
* [ ] **Your registry allow-list includes e6data's registry, or your mirror.** Check: K-04. If it fails: add the registry, or mirror the images first.

### 7. People

* [ ] **Owners named for each team the install touches:** cloud account, network, Kubernetes, security review, and data (buckets and catalog).
* [ ] **Someone with each owner's rights is available on install day.** Firewall and permission changes during the install are the usual cause of delay.
* [ ] **Support access understood:** e6data has no standing access. Support access is given only with your approval, is time-limited, and you can remove it. See [What e6data can access](https://docs.e6data.com/platform/trust/what-e6data-can-access.md).

Admin and deployer emails are set later, during the install. You don't need to send them now.

## Run the preflight commands

The preflight checks your account, network and cluster before the install, using read-only describe calls and dry runs only. There is no packaged preflight script today: run the commands below yourself.

> [!WARNING]
>
> Every command here reads or dry-runs. None creates, changes or deletes anything. Run them with an identity that can read the account and the cluster. A check that you can't run because of missing read rights counts as `WARN`, not `PASS`.

### Requirements

* AWS CLI v2, signed in to the account where e6data will run, with the target region set.
* `kubectl` with access to the cluster (only for the K checks, and only if you use an existing cluster).
* For the N checks: a shell on a machine inside the node subnets (for example a bastion host, or an existing node you reach through your usual access tool).
* The values from [Prerequisites](https://docs.e6data.com/platform/deploy/aws-cloudprem/prerequisites.md): the machine types for your release, and the host list on [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md).

### Output

Record one line per check: `PASS`, `WARN` or `FAIL`, the value seen, and the fix.

### AWS checks

| ID | Check | Command (read-only) | Pass when | Fix if it fails |
| - | - | - | - | - |
| A-01 | Account and region | `aws sts get-caller-identity` and `aws configure get region` | The account and region are the ones agreed for e6data, and the region is where your data buckets are | Switch profile or region. If data is elsewhere, see [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md) for cross-region transfer cost |
| A-02 | vCPU quota | See "A-02 commands" below | Quota minus current use is at least the vCPU you need (see [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md)) | Request an increase in Service Quotas. Increases can take time; request early |
| A-03 | Machine types offered in your zones | `aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=instance-type,Values=<ENGINE_TYPE>,<PLANNER_TYPE> --query 'InstanceTypeOfferings[].[InstanceType,Location]' --output table` | Each type is listed in at least 2 of the zones of your node subnets | Use subnets in zones that offer the types, or ask e6data for an alternative type |
| A-04 | Node subnets and free IPs | `aws ec2 describe-subnets --subnet-ids <SUBNET_1> <SUBNET_2> --query 'Subnets[].{id:SubnetId,az:AvailabilityZone,cidr:CidrBlock,free:AvailableIpAddressCount,tags:Tags}' --output json` | At least 2 subnets in different zones, free IPs at least the number on [IP address sizing](https://docs.e6data.com/platform/deploy/aws-cloudprem/ip-address-sizing.md), and the tags listed there are present | Add or enlarge subnets, or use the custom-networking option on [IP address sizing](https://docs.e6data.com/platform/deploy/aws-cloudprem/ip-address-sizing.md). Add missing tags |
| A-05 | VPC DNS | `aws ec2 describe-vpc-attribute --vpc-id <VPC_ID> --attribute enableDnsSupport` and the same with `--attribute enableDnsHostnames` | Both `true` | Turn both on for the VPC |
| A-06 | S3 gateway endpoint | `aws ec2 describe-vpc-endpoints --filters Name=vpc-id,Values=<VPC_ID> Name=service-name,Values=com.amazonaws.<REGION>.s3 --query 'VpcEndpoints[].{id:VpcEndpointId,type:VpcEndpointType,routeTables:RouteTableIds}'` | A `Gateway` endpoint exists and its route tables include those of the node subnets | Add the endpoint to those route tables. Required when there is no NAT gateway |
| A-06b | Interface endpoints (no NAT only) | `aws ec2 describe-vpc-endpoints --filters Name=vpc-id,Values=<VPC_ID> --query 'VpcEndpoints[].ServiceName'` | With no NAT gateway: `ecr.api`, `ecr.dkr`, `sts`, `eks-auth`, `ec2`, and `glue` / `lakeformation` if used, are listed; or your firewall allows those APIs | Create the missing endpoints (see [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md)) |
| A-07 | Installer permissions | `aws iam simulate-principal-policy --policy-source-arn <INSTALLER_ROLE_ARN> --action-names <ACTIONS> --query 'EvaluationResults[].[EvalActionName,EvalDecision]' --output table` | Every action shows `allowed` | Grant the missing actions from [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md) |
| A-08 | Existing EKS cluster | See "A-08 commands" below | Version 1.29 to 1.35 (e6data's Karpenter supports up to 1.35) and in standard support; OIDC issuer present; `eks-pod-identity-agent` add-on installed (or IRSA in use); service range doesn't overlap networks pods must reach | Upgrade the cluster; associate the OIDC provider; install the add-on. A service range can't be changed on an existing cluster |
| A-09 | Webhook port 9443 | `aws ec2 describe-security-groups --group-ids <NODE_SG> --query 'SecurityGroups[].IpPermissions[]' --output json` | An inbound rule allows TCP 9443 (or all traffic) from the cluster security group or the cluster subnets | Add the rule. Without it, every e6data resource change fails after about 10 seconds. If your nodes use the EKS-managed cluster security group (the EKS default, and e6data's install), this already passes |
| A-10 | Org policies allow a machine launch (dry run) | See "A-10 commands" below | The result is `DryRunOperation` | Read the denial (below), then add the missing tags, AMI or region to your node settings, or ask for an SCP exemption. See [Organization policies](https://docs.e6data.com/platform/deploy/aws-cloudprem/organization-policies.md) |

#### A-02 commands

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances, in vCPUs
aws service-quotas get-service-quota --service-code ec2 --quota-code L-1216C47A \
  --query 'Quota.Value'
# All Standard Spot Instance Requests, in vCPUs (only if you use Spot)
aws service-quotas get-service-quota --service-code ec2 --quota-code L-34B43A08 \
  --query 'Quota.Value'
# Current On-Demand vCPU use (highest value over the last day)
aws cloudwatch get-metric-statistics --namespace AWS/Usage --metric-name ResourceCount \
  --dimensions Name=Service,Value=EC2 Name=Type,Value=Resource Name=Resource,Value=vCPU Name=Class,Value=Standard/OnDemand \
  --start-time $(date -u -v-1d +%Y-%m-%dT%H:%M:%SZ) --end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \
  --period 3600 --statistics Maximum --query 'max(Datapoints[].Maximum)'
```

On Linux, replace `date -u -v-1d` with `date -u -d '1 day ago'`.

#### A-08 commands

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
aws eks describe-cluster --name <CLUSTER> --query \
  "cluster.{k8s:version, oidc:identity.oidc.issuer, auth:accessConfig.authenticationMode, serviceRange:kubernetesNetworkConfig.serviceIpv4Cidr}" -o yaml
aws eks list-addons --cluster-name <CLUSTER>
aws eks describe-cluster-versions --query 'clusterVersions[].[clusterVersion,versionStatus]' --output table
```

A version in extended support works, but AWS bills it at $0.60 per cluster-hour instead of $0.10.

#### A-10 commands

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Latest EKS-optimised Amazon Linux 2023 arm64 AMI for your Kubernetes version
AMI=$(aws ssm get-parameter --name /aws/service/eks/optimized-ami/<K8S_VERSION>/amazon-linux-2023/arm64/standard/recommended/image_id \
  --query Parameter.Value --output text)

# Dry run: nothing is launched
aws ec2 run-instances --dry-run --image-id "$AMI" --instance-type <ENGINE_TYPE> \
  --subnet-id <SUBNET_1> \
  --tag-specifications 'ResourceType=instance,Tags=[{Key=<TAG_KEY>,Value=<TAG_VALUE>}]' \
                       'ResourceType=volume,Tags=[{Key=<TAG_KEY>,Value=<TAG_VALUE>}]'

# If the result is UnauthorizedOperation, read the reason
aws sts decode-authorization-message --encoded-message <MESSAGE> --query DecodedMessage --output text
```

Use your approved AMI ID instead of `$AMI` if you allow only approved images. Include every tag your policies require.

> [!WARNING]
>
> The dry run checks the policies that apply to you, the caller. Nodes are launched by another identity: Karpenter's role, or a service-linked role for managed node groups. SCPs apply to Karpenter's role but not to service-linked roles. A pass here is a strong signal, not a guarantee. Run a real test launch before go-live.

### Network reach checks

Run these from a machine inside the node subnets.

| ID | Check | Command (read-only) | Pass when | Fix if it fails |
| - | - | - | - | - |
| N-01 | Required hosts reachable | See "N commands" below | Each host prints an HTTP status code. Any code means the network path and TLS work | Allow the host in your firewall or proxy. A certificate error means TLS inspection: see [Proxy and TLS inspection](https://docs.e6data.com/platform/deploy/aws-cloudprem/proxy-and-tls-inspection.md) |
| N-02 | Denied hosts fail fast | See "N commands" below | Fails in under 1 second (connection refused, reset, or HTTP 403 from the proxy) | Change the firewall or proxy rule from "drop" to "reject". A silent drop shows as a 10-second timeout here |

#### N commands

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# N-01 Required hosts: each prints an HTTP status code, or FAIL
for h in <REQUIRED_HOSTS>; do
  printf "%s " "$h"
  curl -sS -o /dev/null -m 10 -w '%{http_code}\n' "https://$h/" || echo FAIL
done

# N-02 A host you deny: should fail in under 1 second
curl -sS -o /dev/null -m 10 -w '%{http_code} %{time_total}\n' http://<A_HOST_YOU_DENY>/
```

Replace `<REQUIRED_HOSTS>` with the hosts on [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md). If you use a proxy, set `HTTPS_PROXY` and `HTTP_PROXY` in the shell first, as the e6data console will.

### Kubernetes checks (existing cluster only)

| ID | Check | Command (read-only) | Pass when | Fix if it fails |
| - | - | - | - | - |
| K-01 | Install rights | See "K commands" below | All `yes` for a standard install | Grant the rights on [Kubernetes permissions](https://docs.e6data.com/platform/deploy/aws-cloudprem/kubernetes-permissions.md), or plan a cluster admin step as on [In-VPC deployment options](https://docs.e6data.com/platform/deploy/in-vpc-options.md) |
| K-02 | Add-ons already installed | See "K commands" below | Informational. Lists what you already run, including KEDA, VPA, metrics-server and your default StorageClass. e6data's install adds KEDA and VPA (on by default, can be turned off), makes its own `gp3` StorageClass the default, and relies on the metrics-server EKS add-on | Tell e6data, so the install reuses or skips it |
| K-03 | Policy engines and Pod Security labels | See "K commands" below | Informational. Lists the engines that will judge e6data pods | Run K-04 to see what they decide |
| K-04 | Policies admit e6data pods (server-side dry run) | See "K commands" below | No `denied`, `forbidden` or `violates PodSecurity` messages | See [Pod security](https://docs.e6data.com/platform/deploy/aws-cloudprem/pod-security.md) |

#### K commands

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# K-01 Install rights (each should print "yes")
kubectl auth can-i create customresourcedefinitions
kubectl auth can-i create clusterroles
kubectl auth can-i create namespaces

# K-02 Add-ons already installed
kubectl get crd -o name | grep -iE 'karpenter|cert-manager|keda|autoscaling.k8s.io'
kubectl get deploy -A | grep -iE 'cert-manager|karpenter|aws-load-balancer|cluster-autoscaler|keda|vpa|metrics-server'
kubectl get storageclass

# K-03 Policy engines and Pod Security labels
kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations -o name
kubectl get ns --show-labels | grep pod-security
kubectl get crd -o name | grep -iE 'kyverno|gatekeeper'

# K-04 Server-side dry run: admission runs, nothing is stored
kubectl apply --dry-run=server -n <EXISTING_NAMESPACE> -f <e6data-workloads.yaml>
```

> [!WARNING]
>
> A server-side dry run sends the objects through admission webhooks but stores nothing. Webhooks that don't support dry runs are skipped, so a pass doesn't cover them. e6data custom resources can't be dry-run until the e6data CRDs are installed; dry-run the plain workloads (Deployments, DaemonSets, Services) instead.

You can render the e6data Helm charts you receive (see [Prerequisites](https://docs.e6data.com/platform/deploy/aws-cloudprem/prerequisites.md)) with `helm template` and dry-run the output. The query engine pods are created later by the operator, so they are not in that output.

e6data also supplies a rendered set of its workload manifests, matched to your release, with the In-VPC docs on `assets.e6.run`. Dry-run that set for K-04.

## Verify

After running every check, you should have one line per check ID with `PASS`, `WARN` or `FAIL`. Send these results to e6data before the install is booked.

## Limitations

* There is no packaged preflight script today. The checks are run by hand.
* N checks need a machine inside the node subnets. The preflight never starts a test pod or machine to get one.
* Dry runs can't prove that a real launch or pod start will work (see the notes above).

## See also

* [Prerequisites](https://docs.e6data.com/platform/deploy/aws-cloudprem/prerequisites.md)
* [IP address sizing](https://docs.e6data.com/platform/deploy/aws-cloudprem/ip-address-sizing.md)
* [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md)
* [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md)
* [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md)


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