honua

Install Honua in your AWS account (Launch Stack)

Guide

You'll install Honua into your own AWS account with one CloudFormation stack, know what it creates and what AWS charges you for it, and know how to remove it cleanly.

Who this is for: design partners. The Launch Stack is how we install Honua with you during step 3 of the programme. This is a preview install. Honua supplies a versioned template link and compatible server image digest after the release candidate and clean-install checks pass.

Customer-operated. Everything runs in your AWS account, under your control, on your AWS bill. Honua does not host or operate your install and has no access to it unless you grant it.

How it works

The Launch Stack is a native AWS CloudFormation template for Honua's primary 2026.1 GA deployment architecture: a single-node ECS Fargate default (Size=Small, Availability=Standard) running the native AOT multi-architecture (amd64 + arm64) Honua Server container with Redis off (PostgreSQL holds catalog metadata, durable job queues, leases, progress, and sessions) and Console served as a version-locked static SPA from S3 behind CloudFront at /console/ (no Console container). With the default settings, it creates resources directly without Terraform or a build pipeline. You open the link in the CloudFormation console, review the template and parameters, and create the stack. The install also fetches the watchdog code and the Console files that the template version pins from Honua's template bucket, and verifies each SHA-256 checksum before use.

The form opens with one group, Your install: AdminEmail and an optional DomainNames. That group is most of what you enter. The Presets group (Size, Availability, Protection, IdentityProvider) and the groups labelled Advanced have defaults that install a complete, protected stack untouched. The Your install fields show the parameter name in brackets; every other field is listed by its parameter name, as in this guide. For this preview install you also set ServerImageUri to the image digest Honua gives you, any existing CloudTrail trail ARN from your account check, the certificate for your own domain if you use one and, outside us-east-1, the companion web ACL values and WatchdogMode=Off (see Install below).

Keep AiProvider=None unless you intend to turn on the optional Studio assistant in your account (Optional Studio assistant). That assistant is separate from agents. The install template creates no agent resources and has no agent parameters: agent preview is a separate stack, created later with its own install checks and approved inputs.

Choose a region

Other regions are not supported yet: the template relies on CloudFront private VPC origins, which AWS offers only in some regions and Availability Zones.

Before you start

Operation key ring

Honua encrypts the credentials of long-running operations with an operation key ring, which is protected by a secret held outside the database. Leave OperationKeyRingSecretArn empty and the stack generates that secret for you: a random Secrets Manager secret, encrypted with the stack key (or CustomerKmsKeyArn when you set one), that only the server and Batch worker can read. Its ARN is the OperationKeyRingSecretArn stack output, and it is retained when the stack is deleted.

Back the secret up with your database backups and restore them together. A ring protected with one secret cannot be read with another, so never change, rotate or delete it while the database, or a snapshot you may restore, exists: the server refuses to start with a different secret. Do the same for the stack's generated connection-encryption secret (the MasterKeySecret resource): it protects stored data-source credentials, and AWS Backup does not back up secrets.

Bring your own certificate instead (optional). To protect the ring with a certificate you own, create it before installing, on a trusted workstation with OpenSSL and the AWS CLI, in the deployment account and region:

sh
umask 077
mkdir honua-keyring && cd honua-keyring
openssl req -x509 -newkey rsa:3072 -sha256 -nodes -days 3650 \
  -subj '/CN=Honua operation key ring' -keyout key.pem -out certificate.pem
openssl pkcs12 -export -inkey key.pem -in certificate.pem -out keyring.p12 -passout pass:
openssl base64 -A -in keyring.p12 -out keyring.txt
aws secretsmanager create-secret --region YOUR_DEPLOYMENT_REGION \
  --name honua-operation-keyring \
  --description 'Honua durable operation key-ring protection' \
  --secret-string file://keyring.txt \
  --query ARN --output text

Set OperationKeyRingSecretArn (in Advanced: encryption, backups and retention) to the returned ARN. Use the default aws/secretsmanager encryption key. Keep an encrypted recovery copy of keyring.p12 with your database backups, then delete the working files under your organisation's policy. Keep the same certificate, and keep OperationKeyRingSecretArn set, on every update, scaling change and restore: clearing it switches the stack to a generated secret, and the server then refuses to start because the existing ring is wrapped with your certificate. Never put key material in stack parameters, a Launch Stack link or source control.

Install

What it creates

Shared state lives in PostgreSQL (zero Redis): job queues, leases, progress, workflows, and sessions run on RDS PostgreSQL without ElastiCache or Redis.

Geoprocessing job outputs are written to task scratch space in this release, not to the job-outputs bucket, so they are lost when a task or job is replaced. Download results you need to keep.

The watchdog

The watchdog runs in your account, separately from the Honua server, so it can still notify you when the server is down. Every minute it checks the stack's own cloudfront.net address, including the uncached /healthz/deep database and catalog check, and notifies the same address as the other alarms when a check fails. In NotifyOnly it never restarts or changes anything. Because it checks the CloudFront address, a custom domain whose DNS is not set up yet is not reported as an outage.

Parameters

Application rate limiting is on for every install, and the template has no parameter for it. The current server image allows 1,000 requests per minute for each address the trusted forwarding hop reports, or for each signed-in subject, and counts that separately on each task. Query, upload and metadata routes are tighter: 100, 10 and 200 per minute. A request over a limit receives 429 from the application, which is separate from the web ACL. Per IP per five minutes, the stack's own web ACL blocks every request above 2,000; feature, map and image queries and feature-item reads above 600; edits above 120; sign-in above 120; and geoprocessing above 60. It challenges browser page loads above 1,000 in that window. Those figures are fixed. People who share one address share the uncached allowance.

In us-east-1, the stack creates a budget notice threshold from Size and Availability; it is not a spending cap or a bill estimate. Activate the HonuaStack cost allocation tag in AWS Billing for costs to count toward it. Budget notices go directly to the operations email; operational alarms require confirmation of the SNS subscription. Outside us-east-1 the stack sends no budget notices. Set additional budgets in your AWS account from your own estimate.

Optional Studio assistant

Leave AiProvider=None unless you mean to send Studio chat to a model. None creates no assistant policy, Bedrock endpoint or invocation-logging setup. You operate any assistant you turn on, in your AWS account. AWS bills the resources it creates, and with OpenAI or Anthropic your provider bills the model use. Honua does not host the model and does not receive the prompts. Agents you run yourself can still use Honua's MCP surface; those clients, and any model provider they call, can see the data they retrieve. You choose that provider and its terms.

Selecting Bedrock, OpenAI or Anthropic approves disclosure of AiWorkloadDataClassification to that destination and model for Studio chat. Changing the model, region or classification changes that approval. With Bedrock, AWS charges you for the model use, a private interface endpoint in both private subnets (created whenever Bedrock is selected, including when Protection is Watch), and the invocation logs in the bucket you prepared. With OpenAI or Anthropic, the provider bills the model use and AWS charges you only for the outbound traffic.

Amazon Bedrock. Set AiProvider=Bedrock, AiModel to a regional foundation-model id, AiInvocationLogBucketName to a bucket you prepared, and AiWorkloadDataClassification. Enable that model in Bedrock, in a region that offers on-demand inference, before you create the stack. The server uses its task role, calls only that model, and reaches Bedrock through a private endpoint. No model API key is stored.

Invocation logging applies to the whole account in that region, including calls from other applications. The stack adopts an identical logging configuration and fails rather than replacing someone else's. It does not change your bucket or key policy. Prepare the bucket as Amazon describes for Bedrock model invocation logging: block public access, set retention, and allow bedrock.amazonaws.com to write under honua-model-invocations/AWSLogs/ACCOUNT_ID/BedrockModelInvocationLogs/* with aws:SourceAccount and the regional Bedrock aws:SourceArn. For a customer-managed key, also grant Bedrock kms:GenerateDataKey. Turning the assistant off or deleting the stack leaves that logging in place. Your bucket is not part of the stack. Operators in your account can read the logs, including prompt and response text, so do not send data you cannot retain.

A key in your provider account. Set AiProvider to OpenAI or Anthropic, and set AiModel, AiWorkloadDataClassification and AiCustomerSecretArn. The secret's entire value is only the provider key. Prefer the default Secrets Manager key. If the secret uses a customer-managed key, set CustomerKmsKeyArn to that key at installation and allow the task execution role in the key policy: a later change of CustomerKmsKeyArn replaces the database. Never put the provider key in a parameter, output or log. The execution role can read only that secret, and only the server container receives it. After you rotate the secret, start a new ECS deployment so tasks pick up the value. This path needs a route to the public internet, such as a NAT gateway, to reach https://api.openai.com/v1 or https://api.anthropic.com. An existing VPC that has only VPC endpoints cannot reach the provider. It creates no Bedrock permissions, endpoint or invocation logging. The provider sees the request content and bills the model use; review that account's retention before you enable it.

Before the first assistant request, an administrator runs the server operation admin.ai.admission.initialize, reads the generation, revision and epoch it reports, then runs admin.ai.admission.resume with those values. These are administrator operations on the server, not stack parameters. Initialization leaves admission stopped, and startup does not resume it. The steps are in the server's AI invocation admission reference. Attempt and concurrency limits are not a token budget or a spending cap. Studio on Bedrock has no financial admission control.

What you pay AWS

AWS bills you directly for the resources in your account. Plan for these charges before you approve the install:

Your bill depends on the region, resource sizes, traffic and retention settings. Two NAT gateways, a Multi-AZ database, more tasks and Batch jobs add charges. The default Contain protection also enables private service endpoints, flow logs, Bot Control and Anti-DDoS. Watch disables these controls in the main stack's own resources. An imported companion web ACL has separate settings: its Anti-DDoS is enabled by default even in Watch, and Bot Control can remain enabled independently, so review both stacks when estimating charges. Custom WAF settings require the companion stack. Retained encryption keys and data continue to incur charges after stack deletion. Estimate your chosen configuration with the AWS Pricing Calculator and monitor the resources in your AWS account.

Recover administrator access

Administrators sign in through Console and create API keys from that session. The stack also generates an administrator API credential that the server needs at start-up. It carries full administrator rights without sign-in or a second factor, so it is sealed by default: with AdminCredentialAccess=Sealed, AWS refuses to return the value behind AdminSecretArn to anyone but task start-up, and the server accepts that credential only from loopback inside the task. Every container in the task shares loopback; only the server container is given the credential. It cannot approve agent-proposed changes, and a caller on the network cannot use it while it is sealed.

Use it only when sign-in is unavailable and an administrator must act. Update the stack with AdminCredentialAccess=BreakGlass. That opens the secret's access policy and replaces the server tasks so they accept the credential over the network. CloudTrail records the update. Read the value without printing it and either sign in with the local admin break-glass password on the Console sign-in page or send it as the X-API-Key header. Keep it out of tickets, screenshots and shell history. When sign-in works again, replace the value with a random one of at least 16 characters that has an upper-case letter, a lower-case letter, a digit and a punctuation character (the server refuses to start otherwise), start a new deployment of the ECS service so tasks pick up the new value, and update the stack back to Sealed. Returning to Sealed replaces the tasks again and returns the credential to loopback only. Plan this recovery with your Honua contact.

Use your own domain

Leave the domain parameters empty to use the CloudFront address. To add a domain later, issue an ACM certificate in us-east-1 that covers every hostname, update the stack with DomainNames and AcmCertificateArn. The update also requests the regional origin certificate for honua-origin.YOUR_FIRST_DOMAIN and waits until it is validated: with HostedZoneId the stack adds that validation record itself; otherwise run python3 aws/scripts/dns-instructions.py --stack YOUR_STACK_NAME --region YOUR_REGION from the honua-marketplace repository while it waits and add the record it prints. Changing the first domain requests a new origin certificate and waits for its record again, and removing the domain interrupts traffic for about 15 minutes while CloudFront moves back to the HTTP origin. Then point each hostname at the CloudFrontDomain output (a CNAME, or an alias at the zone apex). With a same-account Route 53 zone, also set HostedZoneId and the stack creates the records; in us-east-1 it can also create and validate the certificate for you. With External mode, register https://YOUR_FIRST_DOMAIN/admin/auth/callback with your identity provider before the update. Cognito mode updates the callback automatically.

Remove the install

Shell
aws cloudformation list-stack-resources --region "$REGION" --stack-name "$STACK" \
  --query "StackResourceSummaries[?ResourceType=='AWS::SecretsManager::Secret'].PhysicalResourceId" \
  --output text > retained-secrets.txt

After deletion the same command still works if you pass the stack ID (shown under Deleted stacks in the CloudFormation console) instead of its name.

Compute, networking, the load balancer, CloudFront and WAF are removed. To protect your data, these are kept and keep billing until you delete them yourself:

Delete them once your recovery and retention obligations are met. For the secrets, once you no longer need to restore anything from this install, delete each one with a recovery window (7 to 30 days, during which you can cancel). The saved list also holds secrets the stack already deleted, such as the Cognito client secret; delete-secret reports those as not found, which is harmless:

Shell
for arn in $(cat retained-secrets.txt); do
  aws secretsmanager delete-secret --region "$REGION" --secret-id "$arn" --recovery-window-in-days 7
done

The retained log groups and the watchdog state parameter carry the stack's ID as well as its name (/honua/YOUR_STACK_NAME/STACK_GUID/..., where STACK_GUID is the first segment of the GUID in the stack ID), so a new install can reuse a deleted stack's name. Certificates and DNS records the stack created are removed; your own certificates and DNS records are not.

Clean up a failed creation

A current template applies deletion protection only after every other resource exists, so a failed first create is not blocked by deletion protection. If creation still stops in ROLLBACK_FAILED, inspect the stack's Events and Resources before deleting anything. This state does not support the stack update used in normal teardown; see the AWS stack status reference.

A stack an earlier template left in ROLLBACK_FAILED can still hold a protected database and a protected load balancer. When Events name deletion protection as the blocker, turn deletion protection off on that database and on that load balancer, and only on the failed install. In the RDS console, select that database from Resources and modify it to turn deletion protection off. In the EC2 console in the deployment region, select that load balancer, open Attributes, choose Edit, turn off Deletion protection, and choose Save changes. Follow AWS's load-balancer attribute instructions and RDS deletion protection.

A first create that fails and rolls back keeps its secrets and its stack encryption key, the same as a deletion, and every failed attempt leaves its own set. Find each set's secrets with the list-stack-resources command from Remove the install, passing the failed stack's ID, and its key with the same command filtered on the key resource:

Shell
aws cloudformation list-stack-resources --region "$REGION" --stack-name "$FAILED_STACK_ID" \
  --query "StackResourceSummaries[?LogicalResourceId=='StackKey'].PhysicalResourceId" --output text

Clean them up the same way.

Resolve any other resource deletion errors shown in Events, then retry Delete on the failed CloudFormation stack. Do not delete resources belonging to another stack or shared account protection. Check the retained-resource list above after cleanup; retained data, keys and backups can still incur charges. Fix the original creation error before launching a replacement stack; it can reuse the failed stack's name.

Troubleshoot

Send stack events and log excerpts to your Honua contact, never secret values.

This page renders from index.md in the same directory — the file an agent reads. All documentation →