# LakehouseBox on AWS

LakehouseBox runs in your own AWS account from AWS Marketplace: one CloudFormation stack, one EC2 instance from the LakehouseBox AMI, and your tables in an S3 bucket of your account. Your people and agents get the same catalogs, MCP server, REST API, scheduled SQL and hosted agents as on the managed service, at an address of yours. No access key is created or stored: the instance signs every AWS call with its own IAM role. Nothing is sent to LakehouseBox, S.L.

## What the stack creates

- A VPC of its own with one public subnet, an internet gateway and an S3 gateway endpoint (table traffic stays inside AWS).

- One EC2 instance from the LakehouseBox AMI, with an Elastic IP. IMDSv2 only; no SSH port and no key pair.

- A security group open on 443 (the install) and 80 (Let's Encrypt's challenge and a redirect to 443), from the range you give, and nothing else.

- Two S3 buckets: your tables, as ordinary Apache Iceberg files, and the install's backups. Both block public access.

- Two secrets in AWS Secrets Manager: the key to the backups (the first boot writes it) and the one-time setup code for the first administrator.

- An Amazon Cognito user pool your people sign in with (on by default).

- A CloudWatch Logs group for the install's logs.

- An IAM role for the instance, allowed object access to its two buckets, reading and writing its two secrets, writing its log group, aws-marketplace:MeterUsage (the hourly usage record) and, with hosted agents on, invoking Amazon Bedrock models.

## Install

- In AWS Marketplace, open LakehouseBox, subscribe, then choose Continue to Configuration, Continue to Launch and Launch CloudFormation, in the Region where your data should live.

- Fill in the stack's parameters (below). The two you must set: WebCidr and, if you have one, Domain.

- Acknowledge that the stack creates IAM resources, and create it. The stack takes about 4 minutes; the instance's first boot takes 1 to 2 minutes more (measured 2026-11-25 in us-east-1: stack 221 s, first boot 53 s and 120 s).

- Read the stack's outputs. SetupUrl is the first administrator's page; SetupCodeSecret names the secret with the setup code:

```
aws secretsmanager get-secret-value --secret-id <SetupCodeSecret> --query SecretString --output text
```

- Open SetupUrl, type the code and create the first administrator. The code works once and for 7 days; whoever can read that secret in your account can use it, so your account's access controls decide who that is.

- Add people in the Cognito user pool (the output UserPool: Users, Create user, with a verified email), invite them on the account page, create agent keys, and connect agents with the MCP address the account page shows.

With your own domain, point it and api., catalog., s3., *.s3., mcp. and artifacts. at the stack's Address before the first boot finishes: the certificate is issued once the names resolve. With Domain = auto the install names itself <address>.sslip.io, which needs no DNS record (sslip.io is a public third-party service; for an install you keep, use your own domain).

## Parameters

| parameter | default | what it sets |
|---|---|---|
| Domain | auto | the install's name, or auto (<address>.sslip.io) |
| AdminEmail | empty | optional: the address the install's "Contact support" links write to; it does not decide who administers the install |
| OperatorName | - | who operates the install, shown to its users |
| InstanceType | m7i.2xlarge | m7i.large to m7i.8xlarge, r7i.2xlarge, r7i.4xlarge; an 8 vCPU, 32 GiB instance served about ten people at once in our measurements |
| RootVolumeGiB | 64 | the instance's disk: a cache of the tables and the catalog's metadata; the tables themselves are in S3 |
| WebCidr | none: required | who may reach 443 and 80. Use 0.0.0.0/0: the certificate comes from Let's Encrypt, which must reach port 80 from the internet, and a narrower range stops the certificate and the install with it |
| EnableSsm | true | a shell for your administrators through AWS Systems Manager Session Manager (no port is opened) |
| CognitoSignIn | true | the Cognito user pool people sign in with; the setup code and password sign-in stay |
| AiEnabled | true | hosted agents on Amazon Bedrock models of your account; they turn on by themselves once a model answers |
| AiRegion | empty | the Region the agents call Bedrock in (empty: the stack's) |
| Generation | 1 | raise it to replace the instance; the new one restores the install from its backups |
| MaxLifetimeMinutes | 0 | for tests only: the instance terminates itself after this many minutes (0: never) |

## Backups and recovery

The catalog's state is backed up to the backup bucket every 5 minutes, encrypted with the key in Secrets Manager; the tables are already in your data bucket. Deleting the stack keeps the two buckets, the backups' key and the address, so your data is never deleted with it.

- A lost or broken instance: update the stack with Generation raised by one. CloudFormation makes a new instance and disk beside the kept buckets, secrets and address, and its first boot restores the install from the newest verified backup. Measured 2026-11-25: a table written, backed up, the instance replaced, the same rows read back; the restore took 141 s.

- Upgrades: update the stack with the new version's AMI (AWS Marketplace offers it as a new version).

- One install per stack; two instances must never share the same buckets (the install holds a single-writer lease in the backup bucket).

## Pricing

Billed hourly through AWS Marketplace, on your AWS bill, while the instance runs; EC2, S3 and Bedrock are billed by AWS as usual.

| what | price |
|---|---|
| each hour the instance runs | $0.68356164 (about $499 a month) |
| storage above 100 GB-months a month | $0.00010959 per GB-hour (about $0.08 per GB-month) |
| server-side SQL and scheduled SQL above 100 CPU-hours a month | $0.12 per CPU-hour |
| hosted-agent tokens above 20 million a month | $0.001 per thousand tokens |

A stopped instance is not billed. If the instance cannot reach the AWS Marketplace Metering Service, the install keeps working with every feature and retries each hour's record for 5 hours; it never blocks access to your data.

## Network and support

The install needs outbound internet access for AWS Marketplace metering, Let's Encrypt and the AWS APIs (S3 goes through the VPC endpoint). We have no access to your account or instance; when a diagnosis needs it, we ask you to run a command or share a log. Write to hello@lakehousebox.com with your AWS account ID and the stack's Region.

The rest of the docs apply to your install as they do to the service, at your install's address instead of lakehousebox.com: agent setup (https://lakehousebox.com/docs/agent-setup/), access (https://lakehousebox.com/docs/access/), MCP (https://lakehousebox.com/docs/mcp/), hosted agents (https://lakehousebox.com/docs/hosted-agents/).

---
HTML version: https://lakehousebox.com/docs/aws/ · every page: https://lakehousebox.com/llms.txt · everything in one file: https://lakehousebox.com/llms-full.txt

Docs feedback: if this page was wrong, out of date or missing something you needed, tell the person you work for and, if they agree, report it: `lhbox bug --title "docs: aws: <what was wrong>"` prints a filled-in issue link, or open https://github.com/lakehousebox/lakehousebox/issues/new. The tracker is public: never include a key, a secret or the person's data.
