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

# Install with your own tooling

> The four parts of an In-VPC install on AWS, the end state each must reach, and what to know when you build it with Terraform, Pulumi, CloudFormation or GitOps.

ReferenceApplies to: CloudPrem on AWS

An e6data In-VPC install has four parts: cloud infrastructure, cluster components (once per cluster), the workspace (once per workspace), then a first query. This page describes the end state each part must reach, in order, and what your own tooling must build. The exact commands are in the step-by-step guides: [Configure registry, VPC, EKS, and networking](https://docs.e6data.com/platform/deploy/aws-cloudprem/configure-registry-vpc-eks-networking.md) (Parts 1 and 2) and [Deploy workspace](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md) (Part 3).

## Before you start

* The [preflight checks](https://docs.e6data.com/platform/deploy/aws-cloudprem/preflight-checks.md) are complete.
* You have sent e6data the items it needs, and you have the items e6data gives you: tenant name, release package (CRDs and Helm charts), image tags, registry access, and the control-plane settings. See [Prerequisites](https://docs.e6data.com/platform/deploy/aws-cloudprem/prerequisites.md).
* Quota increases are requested early. They can take time. See [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md).
* Tools on the machine you install from: AWS CLI v2, `eksctl`, `kubectl`, `helm`, `jq` and `envsubst`.

> [!WARNING]
>
> In zsh (the macOS default shell), run `setopt interactive_comments` before pasting commands. Without it, inline `#` comments in the guides can abort a block with a parse error.

## How you install

There is no install screen in the e6data console. You install with commands you run yourself, in one of two ways:

| Path | What you do | When to use |
| - | - | - |
| Step-by-step guides | Run the commands in [Configure registry, VPC, EKS, and networking](https://docs.e6data.com/platform/deploy/aws-cloudprem/configure-registry-vpc-eks-networking.md), then [Deploy workspace and e6data](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md), in order | Most installs. Each step shows the command and the result to expect |
| Your own tooling | Build the end state below with Terraform, Pulumi, CloudFormation or Bicep, Helm or GitOps (see [Build with your own tooling](#build-with-your-own-tooling)) | Your team must own the code, or your policy requires infrastructure as code |

Both paths create the same end state. Check the AWS account and region before you run anything.

Both paths cover Parts 1 to 3. You do Part 4 (catalog, query cluster, first query) in the workspace once it shows **Running**.

## End state, part by part

Each table lists what must exist when the part is done. Build it with the step-by-step guides or your own tooling. Each part has a check on [Verify the deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/verify-deployment.md).

### Part 1: Cloud infrastructure

If you use an existing VPC or an existing cluster, those items already exist. The checklists are in [Use an existing cluster](https://docs.e6data.com/platform/deploy/aws-cloudprem/use-existing-cluster.md).

| Area | Must exist |
| - | - |
| Network | VPC, public and private subnets, NAT gateway, route tables and the S3 gateway endpoint; private subnets tagged for Karpenter discovery |
| Cluster | EKS cluster with an OIDC provider and the Pod Identity agent, VPC CNI and EBS CSI add-ons; a system node group |
| Node provisioning | Cluster, node, Karpenter, load balancer controller and EBS CSI roles; the Karpenter instance profile (every EC2NodeClass refers to it by name); the Karpenter interruption queue and its 4 EventBridge rules |
| Image access | Pull access to e6data's registry for your account |
| Metadata storage | The S3 metadata bucket |
| Workspace identity | The workspace roles (engine, console, app) and their 5 Pod Identity associations |

Roles and permissions are listed in the [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md). Network sizes are in [Network requirements](https://docs.e6data.com/platform/deploy/aws-cloudprem/network-requirements.md).

> [!NOTE]
>
> The cluster's network choices are decided at setup and can't be changed later. See [Change network settings later](https://docs.e6data.com/platform/deploy/aws-cloudprem/change-network-settings.md) and [Backup and disaster recovery](https://docs.e6data.com/platform/upgrades/backup-and-disaster-recovery.md).

### Part 2: Cluster components (once per cluster)

| Component | Must exist |
| - | - |
| Node provisioning | Karpenter CRDs and controller (e6data's Karpenter adds 2 CRDs) |
| Autoscaling add-ons | KEDA and VPA (e6data's managed install only, not in the install steps); the metrics-server EKS add-on |
| Storage | The `gp3` StorageClass, as the cluster default |
| Load balancing | AWS Load Balancer Controller |
| Certificates | cert-manager |
| e6data operator | The e6-operator CRDs and controller (2 replicas) |

e6data's install creates no operator NodePool: the operator, cert-manager, KEDA and VPA run on the system node group. After Part 2, expect no NodePool (or `e6operator` if you created one yourself).

With the install steps, install charts with `helm upgrade --install`. e6data's managed install renders them with `helm template` and applies them server-side, which avoids Helm's 1 MB release-record limit; GitOps tools that render charts can do the same.

### Part 3: Workspace (once per workspace)

| Item | Must exist |
| - | - |
| Namespace | `${NAMESPACE}`, matching the Pod Identity associations' namespace |
| TLS certificate | e6data's certificate (e6data hostname), your own, or Let's Encrypt (your own cert-manager issuer and Route 53 role) |
| Node settings | `e6operator` NodePool and `<ws>-nodeclass` / `<ws>-nodepool` with the install steps (e6data's managed install also adds `<ws>-platform-nodeclass` / `<ws>-platform-nodepool`) |
| Workspace objects | Service accounts and RBAC, the NamespaceConfig, the UsageStack (Query History and audit), the QueryRouter; MonitoringServices if you turn telemetry on |
| DNS | A record for the workspace hostname pointing at the load balancer |

> [!WARNING]
>
> The namespace must match the namespace of the Pod Identity associations from Part 1 (in e6data's install often `<tenant>-<workspace>`). Use the same `${NAMESPACE}` value throughout. If they differ, the workspace can't reach S3.

After Part 3, expect `<ws>-nodepool` per workspace (and `<ws>-platform-nodepool` with e6data's managed install).

> [!WARNING]
>
> The UsageStack is required. Without it the Query History page stays empty. Its pods run on a small node (4 or 8 vCPU) in the workspace node pool, so that pool must allow one of those sizes.

> [!WARNING]
>
> Don't use a self-signed certificate beyond a throwaway test. Browsers reject it.

### Part 4: First query

The install is done when, in the e6data console, a catalog is registered, a query cluster reaches **Running** (engine nodes start from zero), a query runs in the SQL Editor, and it appears in Query History. See [Register a catalog](https://docs.e6data.com/platform/deploy/aws-cloudprem/register-catalog.md), [Create a cluster](https://docs.e6data.com/platform/deploy/aws-cloudprem/create-cluster.md) and [Run your first query](https://docs.e6data.com/platform/deploy/aws-cloudprem/run-first-query.md). The checks are on [Verify the deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/verify-deployment.md).

## Build with your own tooling

You can build e6data with your own Terraform, Pulumi, CloudFormation or GitOps tool. The install has no tool requirement: the tables above and below list the end state, so any tool can build it.

e6data doesn't publish a Terraform module or CloudFormation template for In-VPC today. e6data's public Terraform scripts are for its earlier deployment model, which gives e6data a cross-account role in your account. Don't use them for In-VPC.

### Requirements

* Your tool builds the same end state as the step-by-step guides.
* Runtime objects that the e6data console creates must stay out of your tool's state (see [What must not be in Git or IaC](#what-must-not-be-in-git-or-iac)).
* Objects you add (tags, AMI, policies) must be re-applied if you re-run the e6data templates over them.

### End state per layer

Exact values live on the owning pages. This table says what has to exist.

| Layer | Must exist | Values on |
| - | - | - |
| Network | VPC, 2 private subnets in 2 AZs, S3 gateway endpoint on the engine route table, security groups | [Network requirements](https://docs.e6data.com/platform/deploy/aws-cloudprem/network-requirements.md), [IP address sizing](https://docs.e6data.com/platform/deploy/aws-cloudprem/ip-address-sizing.md) |
| Private endpoints (no NAT) | Interface endpoints for the AWS services the install calls | [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md), [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md) |
| Cluster | EKS on a supported version, node groups or Karpenter, Pod Identity agent, VPC CNI | [Component versions and operations](https://docs.e6data.com/platform/deploy/aws-cloudprem/component-versions-and-operations.md), [Node provisioning](https://docs.e6data.com/platform/deploy/aws-cloudprem/node-provisioning.md) |
| Identity | Engine, console and app roles with 5 Pod Identity associations (`<ws>-engine` and `<ws>-laminar` to the engine role, `<ws>-console` to the console role, `<ws>-copilot` and `<ws>-metriq` to the app role); optional permission boundary | [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md) |
| Storage and keys | Metadata bucket (on your key if required), read grant on data buckets | [Encryption at rest](https://docs.e6data.com/platform/trust/encryption-at-rest.md) |
| Kubernetes | Operator chart values, workspace namespace, the `e6operator` NodePool and the workspace EC2NodeClass and NodePool (`<ws>-nodeclass` / `<ws>-nodepool`), NetworkPolicies. e6data's managed install instead adds a `<ws>-platform` pair for the console, query router and compaction, plus KEDA and VPA (not in the install steps); it relies on the metrics-server add-on and makes its `gp3` StorageClass the cluster default | [Architecture](https://docs.e6data.com/platform/deploy/aws-cloudprem/architecture.md) |
| Workspace objects | NamespaceConfig, QueryRouter, service accounts and RBAC, optional MonitoringServices | [Deploy workspace](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md) |

### GitOps (Flux or Argo CD)

Requirements for any GitOps tool:

* e6data's CRDs are applied once, server-side, before the operator chart. They ship as their own chart.
* The operator chart and the workspace objects (Namespace, service accounts and RBAC, NamespaceConfig, QueryRouter) can live in Git.
* Your GitOps tool can pull e6data's charts and images, usually from your own mirror.

The operator doesn't fight a GitOps tool: it only writes `status` on the objects you keep in Git, and it reverts changes to objects it owns within seconds.

#### Created once outside Git

* The workspace TLS certificate.
* The control-plane verifier secret.
* The registry pull credential for your GitOps tool.
* GitOps bootstrap objects.

Supply these through your own secret tooling.

#### What must not be in Git or IaC

The console creates these at run time. Declaring them in Git makes your tool and the operator overwrite each other.

* Query clusters
* The metadata service
* Release definitions
* The console's sign-in signing key
* Access policies created in the console

Objects the operator creates carry an owner reference to an e6data resource (NamespaceConfig, QueryService, QueryRouter, MetadataServices). Use that to exclude them, for example Argo CD `resource.exclusions`.

> [!WARNING]
>
> If the workspace Namespace is in your GitOps inventory with pruning on, removing it from Git deletes the namespace and every run-time object in it, including query clusters.

### Tags and approved images in your own templates

Requirements:

* Your required tags reach every instance, volume and network interface e6data causes to be created: both workspace EC2NodeClasses (`spec.tags`, engine and platform); managed node group launch templates (`TagSpecifications` for `instance`, `volume` and `network-interface`, because node groups don't copy their own tags to instances); Auto Scaling group tags with `PropagateAtLaunch=true` if your policy checks the `RunInstances` request; and `ADDITIONAL_ENI_TAGS` on the `vpc-cni` add-on for pod network interfaces.
* If you allow only approved AMIs, your AMI IDs replace `alias: al2023@latest` in the EC2NodeClass.
* Your tags and AMI live in your own copy of the template, because re-running the e6data install re-applies the EC2NodeClass and removes your changes.

> [!WARNING]
>
> If one required tag is missing from the EC2NodeClass under a tag-on-create policy, Karpenter can't launch nodes and clusters stay `Pending`. Nothing else reports the cause. Run a test launch before go-live.

Details: [Your organization's policies](https://docs.e6data.com/platform/deploy/aws-cloudprem/organization-policies.md).

### Preflight check

* Plan or diff with your tool and confirm no run-time object from the list above is in its state.
* Server-side dry run of the workspace objects: `kubectl apply --dry-run=server -f <workspace-manifests>`. Expected: no errors.

### Verify

1. Change one value in Git or your template (for example the QueryRouter maximum replicas). Expected: the change rolls out, and the operator applies it.
2. Edit the same object by hand with `kubectl`. Expected: your GitOps tool reverts it at the next sync.
3. Resume a cluster and run a query ([Verify the deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/verify-deployment.md)). Expected: the query cluster and metadata service survive the next syncs unchanged.

## Cost impact

* Part 1 creates billable resources before any query runs: NAT gateway, system nodes and the load balancer.
* Engine nodes scale to zero when clusters suspend. See [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md).

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| An object flips back and forth between two values | Both your tool and the operator own it | Remove operator-created objects from your tool |
| Clusters stay `Pending` after a template re-apply | Your tags or AMI were overwritten in the EC2NodeClass | Re-apply them from your copy of the template |

For other problems see [Troubleshooting](https://docs.e6data.com/platform/deploy/aws-cloudprem/troubleshooting.md).

## Limitations

* Argo CD, Flux and Terraform or Pulumi modules have not been validated end to end on AWS. The operator's own behaviour with a GitOps tool (it reverts changes to objects it owns) applies to any tool.
* A Git-first install from empty (Git before any manual install) has not been validated. Adopting an existing install into Git is the validated path.

## See also

* [Verify the deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/verify-deployment.md)
* [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md)
* [Architecture](https://docs.e6data.com/platform/deploy/aws-cloudprem/architecture.md)
* [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md)


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