Skip to main content

Amazon Web Services

Ensure all of the following are configured in your AWS account before linking it to Onehouse.

Networking​

VPC​

Create a VPC with a /16 CIDR block (e.g. 10.0.0.0/16) and DNS support enabled. A /16 provides ample headroom as the cluster scales; size up only if your estimated OCU allocation and networking model call for more (see Pod networking and IP consumption below).

Subnets​

TypeCountSizePurpose
PrivateAt least 2, across two AZs/20 each (~4,096 IPs)EKS nodes and pods run here
PublicAt least 2, across two AZs/24 each is sufficientOnly the NAT Gateway and load balancers — no workload IPs required

Pod networking and IP consumption​

Onehouse supports two pod-networking models on AWS. Your choice determines how many VPC IPv4 addresses the cluster consumes:

OptionHow pods get IPsVPC IP consumptionWhen to choose
AWS VPC CNI — no overlay (default)Each pod receives an IP directly from your VPC subnetScales with pod count — size subnets with headroomStandard EKS behavior; simplest and consistent with existing AWS/EKS fleets
Calico — overlayPods receive virtual IPs from an internal overlay network; only the EC2 nodes draw IPs from your VPC subnetScales with node count — consumes far fewer VPC IPsBest when VPC IPv4 space is constrained
Sizing

The /16 VPC and /20 private subnets above are a sound baseline for most deployments. For large-scale or IP-constrained workloads, size based on your estimated OCU (Onehouse Compute Unit) allocation and your chosen networking model — with Calico overlay, VPC IP consumption scales with node count rather than pod count, so a tighter allocation is viable. Reach out to your Onehouse account team to estimate the OCUs — and the resulting IP capacity — for your workload.

caution

EKS subnets must span at least two Availability Zones. Once the cluster is provisioned, you cannot add subnets in a new AZ — only within the AZs selected at onboarding time.

Internet Gateway​

Attach an Internet Gateway to your VPC. The public subnets route through this gateway for NAT Gateway egress.

NAT Gateway​

Deploy a NAT Gateway in a public subnet. For most deployments a single NAT Gateway is sufficient. For higher fault tolerance, deploy one per AZ.

All outbound traffic from EKS nodes routes through the NAT Gateway to reach the Onehouse control plane over TCP 443, plus TCP 7202 for the control plane connection (see Verify Egress Connectivity). No inbound ports need to be opened.

See AWS docs.

S3 VPC Gateway Endpoint​

Create an S3 VPC Gateway Endpoint so that all EKS-to-S3 traffic stays inside the AWS network and does not route through the NAT Gateway.

This is required for two reasons:

  • Cost: NAT Gateway charges per GB. Large data volumes without an S3 endpoint will generate significant NAT costs.
  • Performance: S3 traffic over the private endpoint bypasses internet routing entirely.

See AWS docs.

S3 Gateway Endpoint Policy

Add this policy to the endpoint to allow access to container image registries (Docker, Quay, k8s registry) and your Onehouse/lakehouse buckets:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowContainerImageRegistries",
"Effect": "Allow",
"Principal": "*",
"Action": "*",
"Resource": [
"arn:aws:s3:::docker-images-prod/*",
"arn:aws:s3:::prod-<AWS_REGION>-starport-layer-bucket/*",
"arn:aws:s3:::quayio-production-s3/*",
"arn:aws:s3:::prod-registry-k8s-io*"
]
},
{
"Sid": "AllowOnehouseAndLakehouseBuckets",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::onehouse-customer-bucket-XXXX",
"arn:aws:s3:::onehouse-customer-bucket-XXXX/*",
"arn:aws:s3:::<lake-bucket>",
"arn:aws:s3:::<lake-bucket>/*",
"arn:aws:s3:::s3-datasource-metadata-<ONEHOUSE_REQUEST_ID>",
"arn:aws:s3:::s3-datasource-metadata-<ONEHOUSE_REQUEST_ID>/*"
]
}
]
}

EKS Cluster Endpoint Access​

The EKS cluster API endpoint is private. The Onehouse control plane connects to it from its NAT IPs — you must ensure these are not blocked by your security groups or NACLs:

  • 54.153.81.1/32
  • 184.169.135.156/32

You cannot kubectl directly to the cluster from outside your VPC. Cluster access for support and diagnostics is provided through the bastion host, deployed into your private subnet and reachable via AWS SSM Session Manager — which is why the bastion host is mandatory.

How bastion access is controlled

The bastion has no inbound ports and no public IP; Onehouse reaches it only through AWS SSM Session Manager — no SSH keys, no RDP. Access uses cross-account IAM role assumption with your request ID enforced as the STS ExternalId, and all SSM sessions are logged to your onehouse-customer-bucket-<RequestIdPrefix>. Onehouse does not open SSH/RDP, store SSH keys, or retain standing access to the host outside supported operations. If your team needs direct access, you can grant SSM permissions to your own IAM roles scoped to the bastion instance.

Egress Mode​

Choose one of the following egress configurations:

Public/Private (default)

Outbound traffic from the EKS cluster routes through the NAT Gateway over the public internet to reach the Onehouse control plane. Egress is restricted to approved Onehouse IP ranges. This is the standard configuration for most deployments.

Private Only (PrivateLink)

For environments with strict compliance requirements (no public internet traversal), Onehouse supports AWS PrivateLink. In this mode, all control plane traffic stays within the AWS network — no internet routing is involved.

To enable PrivateLink, set privateLink: true in the customer stack configuration. You must also specify PrivateLink subnets. Onehouse will create:

  • Two Interface VPC Endpoints (for control plane ingress and external ingress)
  • A Route53 Private Hosted Zone for onehouse.ai DNS resolution within your VPC

VPC Peering​

If your data sources (Kafka clusters, databases) live in a separate VPC, configure VPC peering between that VPC and your Onehouse VPC so the EKS cluster can reach them. See AWS docs.

Domain Allowlist​

Required only if your environment has an egress firewall. The Required set below is shared across all clouds (image registries, tooling, control plane) plus a small AWS-specific group; the Conditional set is only needed when the corresponding feature or connector is enabled.

Ports: 443 and 7202

Allow these domains on TCP 443. The control plane connection also needs default-frp-connect.onehouse.ai on TCP 7202. Allowing .onehouse.ai on 443 alone fails onboarding at the control plane connection step. See Verify Egress Connectivity for the port table and a script that checks every endpoint from your data plane subnets before you deploy.

Required — allowlist for every AWS deployment

Shared across all clouds (image registries, tooling, control plane):

  • .onehouse.ai — control plane APIs, gateway, telemetry, image distribution
  • .docker.io — Docker Hub registry
  • production.cloudflare.docker.com — Docker Hub blob CDN (Cloudflare)
  • production.cloudfront.docker.com — Docker Hub blob CDN (AWS CloudFront)
  • docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com
  • docker-registry-production.d24a988e385e0074d717b6bdaea58f0d.r2.cloudflarestorage.com
  • auth.docker.io.cdn.cloudflare.net
  • .cloudfront.net — registry / image blob delivery
  • .gcr.io — Google Container Registry image pulls
  • .pkg.dev — Google Artifact Registry image pulls
  • .googleapis.com — gcr.io / pkg.dev blob storage backend
  • .k8s.io — Kubernetes registry (registry.k8s.io)
  • ghcr.io — spark-operator and flink-operator images
  • .quay.io — Strimzi, Prometheus, and Calico images
  • registry.terraform.io — Terraform provider/module registry
  • releases.hashicorp.com — Terraform binaries
  • get.helm.sh — Helm binary downloads
  • github.com — Terraform providers and modules
  • .github.com
  • .githubusercontent.com
  • .github.io
  • .strimzi.io — Strimzi Kafka operator
  • .pagerduty.com — Onehouse operational alerting

AWS-specific:

  • .amazonaws.com — AWS APIs, S3, STS, ECR
  • .ecr.aws — Onehouse ECR image pulls (public.ecr.aws)
Conditional — only if the corresponding feature or connector is enabled
  • .confluent.cloud — Confluent / Kafka sources
  • .jupyter.org — notebooks
  • .debezium.io — Debezium CDC connectors
  • datadoghq.com — Datadog telemetry (site-specific, e.g. us5.datadoghq.com)
  • docker.elastic.co — Elasticsearch images
  • docker-auth.elastic.co
  • .snowflakecomputing.com — Snowflake source/sink
  • .databricks.com — Databricks source/sink
  • .splunkcloud.com — Splunk log sink
  • .slack.com — Slack notifications
  • api.honeycomb.io — Honeycomb telemetry
  • .openai.com — AI features
  • apachesuperset.docker.scarf.sh — Superset dashboards image

IAM Service Roles​

Ensure these AWS-managed service-linked roles exist in your account before deploying. These are standard AWS roles required to create and manage EKS clusters — they are not Onehouse-specific.

RolePurpose
AWSServiceRoleForAmazonEKSAllows EKS to manage cluster-level AWS resources
AWSServiceRoleForAmazonEKSNodegroupAllows EKS to manage node groups and EC2 instances
AWSServiceRoleForAutoScalingAllows EC2 Auto Scaling to manage instances within the cluster
How to create these roles if they don't exist
  • EKS role: IAM → Create role → EKS service → EKS - Service
  • EKS Node Group role: IAM → Create role → EKS service → EKS - Nodegroup
  • EC2 Auto Scaling role: IAM → Create role → EC2 Auto Scaling service → EC2 Auto Scaling

Storage​

Terraform State Bucket​

Create an S3 bucket named onehouse-customer-bucket-<RequestIdPrefix> in the same region as your deployment. This bucket stores Terraform state and Onehouse configuration artifacts.

Lakehouse Bucket​

Create an S3 bucket for your data lakehouse in the same region as your deployment. Cross-region buckets will incur data transfer costs.

Encryption​

By default, S3 SSE encryption is applied automatically and requires no additional setup.

Enable S3 Bucket Keys on any SSE-KMS bucket

If your lakehouse bucket uses SSE-KMS (an AWS-managed or customer-managed KMS key), you must enable S3 Bucket Keys on it.

Onehouse performs frequent metadata operations on your bucket. Without Bucket Keys, S3 makes a separate KMS API call for every object operation, which can lead to a large, unexpected KMS bill. Bucket Keys let S3 cache the data key and cut KMS request costs by up to 99%.

Enable it in S3 → your bucket → Properties → Default encryption → Edit → Bucket Key = Enable. It applies to newly written objects; existing objects re-encrypt as data is rewritten over time.

Buckets using SSE-S3 (AES256) are unaffected — they make no KMS calls.

If your organisation requires KMS customer managed keys:

KMS setup (complete after onboarding)
  1. Create a KMS key in AWS KMS.
  2. Add onehouse-customer-eks-node-role-XXXX and onehouse-customer-core-role-XXXX as key users. These roles are created during the customer stack deployment.
  3. Update the customer stack: set s3KmsKeys to the KMS key ARN(s) and re-apply Terraform.
  4. In your S3 bucket → Default encryption → select SSE-KMS → choose your key → enable bucket key.
tip

Enabling the S3 bucket key reduces KMS API request costs by up to 99%.

Service Control Policies (SCPs)​

If your AWS organisation enforces Service Control Policies, ensure the following actions are not denied for the Onehouse IAM roles (onehouse-customer-*):

  • ec2:* (describe, manage instances, security groups, VPCs — scoped to tagged resources)
  • eks:* (create, describe, manage clusters and node groups)
  • iam:CreateRole, iam:AttachRolePolicy, iam:PassRole
  • s3:GetObject, s3:PutObject, s3:ListBucket (on Onehouse and lakehouse buckets)
  • cloudwatch:PutMetricData, logs:CreateLogGroup, logs:PutLogEvents
  • sts:AssumeRole (for cross-account access from Onehouse control plane)

If your organisation uses a permissions boundary, set the permissions_boundary variable in the customer stack to the ARN of your boundary policy. All Onehouse IAM roles will be created with this boundary applied.

Custom Tags​

If your organisation requires all AWS resources to carry specific tags — for cost allocation, compliance, or a Service Control Policy that denies untagged resource creation — you can supply them during onboarding. Onehouse applies them both to the resources the customer stack creates and to the data-plane resources it provisions later (the EKS cluster, nodes, EBS volumes, ENIs and load balancers).

Where you set them depends on how you deploy the customer stack.

Terraform​

Set the customTags variable:

customTags = {
"BusinessUnit" = "data-platform"
"Environment" = "production"
}

CloudFormation​

Set them as stack tags, not as a template parameter. On the Quick create stack page, expand Tags and add each key and value before choosing Create stack.

CloudFormation applies stack tags to the resources it creates, which is what satisfies a Service Control Policy that denies untagged iam:CreateRole or kms:CreateKey. Onehouse then reads the same tags back from your stack and applies them to your data plane, so you only enter them once.

note

Two resource types in this stack cannot be tagged at all: IAM managed policies and IAM instance profiles. CloudFormation provides no way to tag them, so stack tags do not reach them. If your SCP requires tags on iam:CreatePolicy or iam:CreateInstanceProfile, the CloudFormation stack will still be denied — use the Terraform path instead, which tags IAM policies directly.

caution

Add your tags before creating the stack. Under a tag-enforcing SCP, a stack created without them fails and has to be recreated.

Changing tags later, and what an upgrade does​

AWS lets you change a stack's tags at any time, but a tag change on its own does not reach your data plane: CloudFormation only re-runs Onehouse's configuration step when a stack parameter changes, and tags are not parameters.

To push a tag change through, set the dataPlaneTagsRevision parameter to any new value (a date or a ticket number works) in the same stack update. That re-runs the configuration step, and your current tags reach the data plane within about fifteen minutes.

If you already run a Onehouse stack, upgrading it does not change your data plane's tags — including any tags your stack has carried for your own cost reporting. They are applied only when you set dataPlaneTagsRevision yourself. This is deliberate: applying tags re-tags data-plane resources and can replace compute nodes, which is not something an upgrade should do unasked.

note

If your account applies a permissions boundary to the roles this stack creates, it must allow cloudformation:DescribeStacks on the stack. Without it, Onehouse cannot read your tags, and an update will leave your data plane's existing tags in place and log the reason.

Tag keys reserved by Onehouse​

Four keys must not be used, because Onehouse reads their values back rather than treating them as labels:

OrganizationId   RequestId   CustomerRegion   CostCenter

RequestId is the external ID used to assume the role your stack creates, and CostCenter is what the stack's IAM policies match on to grant Onehouse access to your EKS, KMS and MSK resources. Overriding either stops Onehouse reaching your account. The match ignores case, so requestid counts the same as RequestId.

Onehouse ignores these keys on your data plane whatever you set, so they cannot take effect there. Newer stack versions also catch them earlier and tell you; older ones accept them silently.

If your own tagging standard uses one of these names, prefix it — MyCompany:CostCenter is accepted and reaches every resource. Every other key is yours, though Onehouse sets its own value for Name, owner, service, createdBy and accessibleTo on some data-plane resources, so your value for those is not guaranteed to survive there.

Two more things worth knowing:

  • Where a reserved key is caught differs by path. On CloudFormation a new stack creates its resources and then fails at the final configuration step and rolls back; on an existing stack the key is dropped with a warning instead, so an upgrade is never blocked by one.
  • Onehouse adds about 8 tags of its own to data-plane resources. AWS allows 50 tags per resource, so keep your own set to 40 or fewer to stay clear of the limit.

Also see Tags that must reach load balancers for the two characters to avoid.

caution

Prefixing does not help if your SCP mandates the bare key CostCenter with your own value. Onehouse stamps CostCenter = OneHouse on the resources it creates, so such a policy denies them whatever you set here. That case needs an SCP exception for Onehouse-created resources — raise it with your Onehouse contact before you deploy, rather than discovering it as a failed stack.

Tags that must reach load balancers​

Avoid , and = in tag keys and values if the tag has to appear on your load balancers. Those tags are passed through a comma-and-equals delimited string, so a value such as platform, core=primary will not survive onto an ELB.

Validate Your AWS Setup​

Before you deploy the customer stack, run the validation script below. It finds networking and permissions issues early.

Download: aws_permissions_check.sh and uris.txt. Put both files in the same directory.

Run the script from a host in the private subnets that you give to the data plane. The egress result is only correct when the host uses the same NAT and firewall path as the cluster nodes. The host needs the AWS CLI, jq and curl.

chmod +x aws_permissions_check.sh
./aws_permissions_check.sh <VPC-ID> <AWS_REGION> <ONEHOUSE_REQUEST_ID>

The script checks the VPC configuration, the subnet layout, the IAM roles, the S3 endpoint, Service Control Policies, and egress to each endpoint in uris.txt. The egress check opens a TLS connection on the port of each entry, including default-frp-connect.onehouse.ai on TCP 7202. If an endpoint is blocked, the script lists each blocked host:port for your network team and exits with code 1. Fix all reported issues before you deploy.

To check only egress, without AWS CLI access, use onehouse-egress-check.sh.