The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
# ─────────────────────────────────────────────────────────────────────────────
# BoxLite Infra — legacy AWS bootstrap .env
#
# Copy to .env for the retained AWS bootstrap/deployment path. For current mdeploy
# configuration ownership, see docs/configuration.md; GCP values are seeded with mstage.
# SST application secrets are stage-scoped. Set them separately with the
# `npm run sst -- secret set` command; putting those names here does not
# configure the deployed app.
#
# This file is an input to `npm run bootstrap`. Bootstrap loads it into the stage's SST
# secret store, and legacy deploys — local or CI — read the stage configuration back from
# there, not from here. So editing this file changes nothing until you rerun bootstrap, and
# a key you delete from it stops applying on the next bootstrap.
#
# The exception is the keys bootstrap deliberately keeps OUT of the store, because a
# machine-specific `aws` path or an artifact selector must not become stage-wide
# configuration. Those a local deploy does read straight from this file. Section 4 lists
# most of them, but not all: CLOUDFLARE_API_TOKEN and CLOUDFLARE_DEFAULT_ACCOUNT_ID in
# section 1 are local-only too, and a value set for either here wins over the copy in SSM.
# CI has no .env at all, and reads both from the stage's GitHub Environment secrets.
#
# Tier legend (what happens if you leave a var unset):
# [required] deploy fails — the config throws or a provider errors
# [required at runtime] deploy succeeds, but the feature is broken until set
# (the code silently falls back to a non-working default)
# [optional] safe to leave unset
#
# Sections 1–2 contain the required local configuration. Section 3 describes
# the optional Runner inventory configuration; section 4 holds optional local
# overrides.
# ─────────────────────────────────────────────────────────────────────────────
# ─── 1. Domain + DNS ─────────────────────────────────────────────────────────
# [required] Must match the `--stage` npm run bootstrap was run with. This prevents SST
# from naming a boundary that was never provisioned.
IAM_PERMISSIONS_BOUNDARY_STAGE=dev
# [required] A Cloudflare-managed domain. SST creates ACM certs + DNS records
# automatically via the Cloudflare API. Deploy throws without STACK_DOMAIN, and
# the Cloudflare provider fails without the two credentials.
# Subdomain for this stack (e.g. dev.boxlite.ai, staging.boxlite.ai)
STACK_DOMAIN=dev.example.com
# [optional] Where the dashboard is served, when it is not the domain above.
# The control plane always answers at `api.<STACK_DOMAIN>`, so this moves the
# dashboard alone — prod does, because its apex belongs to the marketing site.
# Set it before `--provision-auth0`: Auth0 matches a redirect_uri exactly and
# has no upsert for an application, so a callback URL registered against the
# wrong host is a refused login that a second run cannot repair.
# DASHBOARD_DOMAIN=app.example.com
# [optional, GCP only] Where users' named apps are served: `<name>.<STACK_USER_DOMAIN>`.
# A registrable domain of its own, not sharing STACK_DOMAIN's, so a named app is
# not same-site with the dashboard and a blocklisted one does not take the
# platform's domain with it. Unset, the stage offers no named apps. Its records
# go into its own Cloudflare zone, which the token must also be able to edit.
# STACK_USER_DOMAIN=apps.example
# CLOUDFLARE_USER_ZONE_ID=
# Cloudflare credentials — create an ACCOUNT-owned token with Zone:Read +
# DNS:Edit. See docs/deployment.md#cloudflare-api-token and restrict the
# token to the zone serving STACK_DOMAIN and PROXY_DOMAIN, plus the user
# domain's zone if STACK_USER_DOMAIN is set. Cloudflare's docs
# require a dashboard-created token before any token can be minted via API, so
# `npm run bootstrap` prompts for this value once per stage and stores it in
# SSM. See that deployment section for why the browser login used for
# AWS/GitHub/Auth0 cannot cover this one.
CLOUDFLARE_DEFAULT_ACCOUNT_ID=
CLOUDFLARE_API_TOKEN=
# ─── 2. Auth (Auth0 / Okta / Keycloak / Dex / …) ─────────────────────────────
# External OIDC provider. The Api validates JWTs via JWKS and probes the
# issuer's discovery doc once at startup. Any compliant IdP works.
#
# IdPs that don't advertise `end_session_endpoint` (notably Dex —
# `dexidp/dex#1697`) are handled automatically: the dashboard's logout falls
# back through BoxLite's own `/api/auth/end-session` route. See section 4f for
# the override knobs if you need them.
#
# Auth0 setup:
# 1. Create a Single Page Application → get client_id
# 2. Create a custom API → use its identifier as audience
# 3. Set in Auth0 app settings, naming the host the dashboard is served from —
# STACK_DOMAIN unless DASHBOARD_DOMAIN moves it. Auth0 matches a
# redirect_uri exactly, so the wrong host here is a refused login rather
# than one that merely looks wrong:
# Allowed Callback URLs: https://<dashboard host>
# Allowed Logout URLs: https://<dashboard host>
# Allowed Web Origins: https://<dashboard host>
# `bootstrap --provision-auth0` fills these in for you, from the same two
# keys in this file — so setting DASHBOARD_DOMAIN here before bootstrapping
# is what keeps them right.
# 4. For production, verify the sender in Amazon SES, then preview and apply
# BoxLite's Auth0 SES provider and code-email templates. The apply command
# prompts for the SES access key; do not persist it in this file:
# npm run auth0:login-policy-login
# npm run auth0:configure-email -- --tenant <tenant.auth0.com> \
# --from <verified sender> --region <SES AWS region>
# # Inspect the JSON preview, then repeat with --apply.
# Then preview and apply Identifier First, email-OTP signup, verification
# Form, and the scoped Post-Login Action:
# npm run auth0:configure-login -- --tenant <tenant.auth0.com> \
# --client-id <SPA client_id> --connection <database connection name> \
# --api-audience <OIDC_AUDIENCE>
# # Inspect the JSON preview, then repeat with --apply.
# For a non-production canary, skip auth0:configure-email and add the
# explicit --allow-test-email-provider flag to both configure-login runs.
# This uses Auth0's default test sender/templates, not MailDev.
# 5. Enable Dashboard → Settings → Advanced → "Login and Logout" →
# "RP-Initiated Logout End Session Endpoint Discovery". Without this
# toggle the SPA's Sign Out will silently re-authenticate the user via
# Auth0's still-alive session cookie. Default-on for tenants created on
# or after 14 November 2023; older tenants must flip it manually.
#
# [required] Exact issuer URL from the provider's discovery document.
# Auth0 includes the trailing slash shown below; other providers may not.
# Do not add or remove a slash because OIDC issuer matching is byte-for-byte.
OIDC_ISSUER_BASE_URL=https://your-tenant.auth0.com/
# Optional exact public issuer shown to browser clients, usually an Auth0 custom
# domain. Leave unset when the public and internal issuer are the same.
PUBLIC_OIDC_DOMAIN=https://auth.dev.example.com/
# [required SST secret] Set the SPA client ID in the stage's SST secret store;
# it is deliberately not read from this local deployment environment. Use the
# non-echoing stdin procedure in README.md; never put the value in process argv:
# printf '%s' "$secret_value" | npm run sst -- secret set OIDC_CLIENT_ID --stage <stage>
# [required] Non-secret API audience: the API host, with no path:
OIDC_AUDIENCE=https://api.dev.example.com
# [optional] A nonempty sitekey enables first-account Turnstile protection.
# Leave it empty to keep automatic local registration. When enabled, create a
# Managed widget for the Dashboard hostname and provide the matching secret.
TURNSTILE_SITEKEY=
TURNSTILE_EXPECTED_HOSTNAMES=
# [optional] Positive integer milliseconds; validated when Turnstile is enabled.
TURNSTILE_TIMEOUT_MS=5000
# [SST secret, required when enabled] Set TURNSTILE_SECRET_KEY through `sst secret set`.
# See docs/configuration.md#first-account-registration for secret delivery on both clouds.
# ─── 3. Runner ───────────────────────────────────────────────────────────────
# [optional] Expected current runner total from 1 to 100 (the default runner is
# #1). Routine deploys require an exact match with SST state and cannot create,
# recover, or remove runners. Unset = 1 (default only).
# v2 runners self-report their address via healthcheck, so no IP wiring is needed.
# RUNNERS=3 # only when state already contains default + runner-2 + runner-3
#
# [legacy, leave unset on a new stage] ghcr pull credential. Runners no longer
# read it: a runner holds no registry credential at all and pulls every image
# anonymously, so every curated image — BOXLITE_SYSTEM_*_IMAGE and each entry
# appended through BOXLITE_SYSTEM_IMAGES (comma-separated `name=ref`, e.g.
# `tools=ghcr.io/acme/tools:v3`; unlike the INERT vars in section 4n,
# this one IS read) — must be public. A private image 401s whatever is set
# here. Keep curated images off docker.io too: each runner asks the registry
# once per curated ref, and Docker Hub's anonymous limit is shared by every box
# on a runner's address. When set, the SST stack still stores the token in Secrets Manager and a
# runner host built from that stack fetches it at boot and refuses to start
# without it; unsetting it deletes that secret, so remove it only once no such
# host is left.
# GHCR_USERNAME=boxlite-ci-bot
# GHCR_TOKEN=ghp_xxx
# ─── 4. Optional overrides ───────────────────────────────────────────────────
# Everything below is [optional]. Entries marked local-only must remain unset in
# the stage's SST secret store; `npm run bootstrap` keeps them out of it.
# 4a. AWS / deploy
# AWS region used by both SST and the post-deploy verifier.
# AWS_REGION=ap-southeast-1
# One artifact selector for both deployable components:
# release — API from the stage ECR repository; Runner from the GitHub Release
# build — both from artifacts published for one commit: the API image tagged
# v<version>-<sha>, the Runner from the commit-keyed private S3 object
# Leave unset to preserve the legacy per-component defaults (API=build, Runner=release).
# The guarded dev/release workflows always set this explicitly.
# BOXLITE_ARTIFACT_SOURCE=build
# Optional per-component override; each wins over BOXLITE_ARTIFACT_SOURCE.
# API_ARTIFACT_SOURCE=release
# RUNNER_ARTIFACT_SOURCE=build
# Build mode addresses a published artifact by the commit that produced it; never a branch
# name. deploy-infra.yml publishes both and sets the global key. Set a component key instead
# when only that component was published — which is what `npm run runner:build-artifact:legacy`
# prints, since it stages a Runner and leaves the API building from this checkout. A build
# with no ref at all builds the API here and needs no published Runner.
# BOXLITE_ARTIFACT_REF=a1b2c3d4e5f60718293a4b5c6d7e8f9012345678
# API_ARTIFACT_REF=a1b2c3d4e5f60718293a4b5c6d7e8f9012345678
# RUNNER_ARTIFACT_REF=a1b2c3d4e5f60718293a4b5c6d7e8f9012345678
# Published X.Y.Z selected for BOTH the API image and Runner release asset. Defaults to
# Cargo.toml's workspace version.
# VERSION=0.9.8
# Local CLI only: AWS profile used by SST. Remove it before uploading this file
# into the stage's secret store; GitHub CI uses OIDC and never reads AWS_PROFILE.
# AWS_PROFILE=my-aws-profile
# Local CLI only: optional absolute AWS CLI path. Remove it before uploading
# into the stage's secret store; CI selects the native Ubuntu AWS CLI from PATH.
# AWS_CLI_PATH=/opt/homebrew/bin/aws
# 4b. Secrets & keys — auto-generated per stack; pin only to rotate or to share
# a value across stacks.
# ENCRYPTION_KEY=
# ENCRYPTION_SALT=
# ADMIN_API_KEY=
# PROXY_API_KEY=
# DEFAULT_RUNNER_API_KEY=
# 4c. Endpoints & URLs — auto-derived from STACK_DOMAIN; pin for custom DNS /
# topology. PROXY_DOMAIN configures the public hostname, certificate, and
# wildcard alias on SST's TLS NLB listener; keep the URL values aligned with it.
# PROXY_DOMAIN=proxy.dev.example.com
# PROXY_PROTOCOL=https
# PROXY_TEMPLATE_URL=https://proxy.dev.example.com
# DEFAULT_TEMPLATE=ubuntu:24.04
# DASHBOARD_URL=https://dev.example.com
# DASHBOARD_BASE_API_URL=https://api.dev.example.com
# APP_URL=
# 4d. Provisioning-time Runner identity. It is immutable for an existing stack:
# routine deployment rejects a rename. Use 2-255 letters, numbers, underscores,
# periods, or hyphens; it must not equal an extra runner name such as runner-2.
# v2 runners self-report their address, so there are no domain/url knobs to pin.
# DEFAULT_RUNNER_NAME=default
# 4e. Auth0 Management API (account linking).
# Gated behind OIDC_MANAGEMENT_API_ENABLED — off by default. Create a
# Machine-to-Machine application in Auth0, authorize it for the Auth0
# Management API with permissions: read:users, update:users, read:connections,
# create:guardian_enrollment_tickets, read:connections_options.
# OIDC_MANAGEMENT_API_ENABLED=true
# Optional for a root issuer; required for a path-based issuer. This is the
# exact API prefix before endpoints such as `connections` and `users/...`.
# OIDC_MANAGEMENT_API_BASE_URL=https://your-tenant.auth0.com/api/v2/
# Optional for a root issuer; required for a path-based issuer because the OIDC
# client-credentials endpoint cannot be derived safely from an issuer path.
# OIDC_MANAGEMENT_API_TOKEN_URL=https://your-tenant.auth0.com/oauth/token
# Set OIDC_MANAGEMENT_API_CLIENT_ID and OIDC_MANAGEMENT_API_CLIENT_SECRET through
# `npm run sst -- secret set`, not in this file.
# OIDC_MANAGEMENT_API_AUDIENCE=https://your-tenant.auth0.com/api/v2/
# 4e-bis. Login-time account link, merging a person's logins into one account.
# OIDC_ACCOUNT_LINK_SECRET, at least 32 characters, turns on the endpoints the
# Post-Login Action calls to move a folded user's BoxLite data and to ask
# whether BoxLite knows a user; the tenant's Action holds the same key as
# ACCOUNT_LINK_SECRET. Set it through `npm run sst -- secret set`, never in this
# file (docs/identity-and-mail.md#account-linking-at-login).
# 4f. OIDC logout overrides.
# OIDC_END_SESSION_ENDPOINT — RP-initiated logout fallback URL. Auto-derived to
# `https://<DASHBOARD_DOMAIN or STACK_DOMAIN>/api/auth/end-session`: the browser
# is redirected there at the end of a logout, so it is the origin the dashboard
# is already on rather than the control plane's. The Api only advertises this to
# the dashboard when the IdP itself lacks `end_session_endpoint`; for Auth0/Okta
# it stays hidden and the IdP's real endpoint is used. Pin only if that route is
# served somewhere else again.
# OIDC_END_SESSION_ENDPOINT=
# Additional origins (comma-separated) the logout endpoint accepts as
# `post_logout_redirect_uri` beyond DASHBOARD_URL. The default allowlist is
# [DASHBOARD_URL].
# OIDC_POST_LOGOUT_REDIRECT_ALLOWLIST=https://staging.example.com,https://preview.example.com
#
# The MCP endpoint's OAuth resource URL. mdeploy defaults it to https://<api host>/mcp;
# run `npm run auth0:configure-mcp` for MCP clients to sign in by browser.
# MCP_RESOURCE_URL=https://api.example.com/mcp
# 4g. Internal services. The stack deploys no admin UI: reach Postgres with a
# local client over `aws ssm start-session` port forwarding, and read traces from
# ClickHouse (section 4k). The OtelCollector OTLP endpoint is internal-only with
# no toggle: every emitter (API, runner, boxes) is in-VPC, so there is no reason
# to expose ingest.
# 4h. API CORS allowlist. The API pins CORS to DASHBOARD_URL (+ APP_URL).
# Set CORS_ALLOWED_ORIGINS (comma-separated) to permit additional first-party
# origins (e.g. a local dashboard during development). If none of the three are
# set the API reflects the request origin and logs a warning.
# CORS_ALLOWED_ORIGINS=http://localhost:5173,https://preview.example.com
# 4i. Analytics & feature flags (PostHog) — product analytics/metrics plus the
# dashboard's feature flags. Without POSTHOG_API_KEY the DASHBOARD_CREATE_BOX
# flag can't resolve, so the "Create Box" button stays disabled, and API
# request metrics stop recording.
# Set POSTHOG_API_KEY through `npm run sst -- secret set`, not in this file.
# POSTHOG_HOST=https://us.posthog.com
# 4j. Webhooks (Svix) — outbound event delivery (box/snapshot/volume events).
# Without SVIX_AUTH_TOKEN the dashboard logs cosmetic errors. SVIX_SERVER_URL
# pins a self-hosted Svix instance (defaults to Svix cloud).
# Set SVIX_AUTH_TOKEN through `npm run sst -- secret set`, not in this file.
# SVIX_SERVER_URL=
# 4j-2. Billing — points the API, and through GET /api/config the dashboard, at
# a billing service. [optional]; this stack deploys none, so unset means the
# dashboard's whole billing surface stays gated off and shows its placeholder
# instead of advertising a service that would fail every request. Suspension
# does not key off it (REQUIRE_PAYMENT_METHOD does).
# BILLING_API_URL=https://billing.example.com/api/billing
# Setting it enables CREATE BOX admission reads against GET /plan and
# GET /organization/{organizationId}/plan. The API validates this URL and
# requires USAGE_EXPORT_TOKEN at startup. A request-time transport or 5xx
# outage logs a warning and temporarily disables the creation limit; rejected
# credentials or malformed responses still return 503. It also enables
# GET /internal/billing-states and arms usage export. These internal routes
# share USAGE_EXPORT_URL, which defaults to BILLING_API_URL's origin. Set an
# explicit value for a separate internal host or path prefix; clients append
# their internal routes. The API validates this base even when export is off;
# URL userinfo, queries and fragments are rejected while BILLING_API_URL is set.
# USAGE_EXPORT_URL=https://billing.example.com
# [required SST secret for CREATE admission and export] USAGE_EXPORT_TOKEN
# authenticates plan reads and turns delivery on:
# until the stage's secret store holds one, the exporter stays off and writes no
# outbox rows. It must equal the string the billing service reads as
# USAGE_INGEST_TOKEN — for boxlite-commerce, the value its own stack keeps in
# Secrets Manager under boxlite-commerce/<stage>/usage-ingest-token. Use the
# non-echoing stdin procedure in README.md; never put the value in process argv.
# A non-blank token enables both finalized usage export and the five-minute
# full allocation snapshot used for available-credit estimates.
# 4j-3. Public status page (incident.io) — the API pushes component health as
# alert events plus a heartbeat ping; incident.io turns them into incidents,
# page component states and uptime history (apps/infra/docs/status-page.md).
# [optional]; leave everything unset and the sync stays dark — the intended
# state for dev stages, which must never touch the public page.
# INCIDENT_IO_ALERT_SOURCE_CONFIG_ID= # HTTP alert source id, from incident.io
# INCIDENT_IO_HEARTBEAT_ID= # optional; blank skips the dead man's switch
# STATUS_SYNC_DEDUP_PREFIX= # defaults to boxlite-<stage>
# [required SST secret to sync] INCIDENT_IO_TOKEN is what turns the sync on:
# an incident.io API key scoped to creating alert events and sending heartbeat
# pings only — no incident or status-page write scopes. Set it through
# `npm run sst -- secret set` with the non-echoing stdin procedure in
# README.md; never put the value in process argv or this file.
# 4k. Observability backend — ClickHouse (OTLP traces/metrics/logs only).
# Default is a private, single-node, non-HA self-hosted backend. See docs/aws/clickhouse.md.
# CLICKHOUSE_MODE=self-hosted # self-hosted | managed | disabled
# Managed only: URL is the origin of an existing ClickHouse Cloud service and must
# not contain a path, query, fragment, or credentials. Password secrets must be
# in this stage's AWS region/account,
# named boxlite-<stage>-*; never put password values in this file.
# CLICKHOUSE_URL=https://example.clickhouse.cloud:8443
# CLICKHOUSE_WRITER_PASSWORD_SECRET_ARN=arn:aws:secretsmanager:...
# CLICKHOUSE_READER_PASSWORD_SECRET_ARN=arn:aws:secretsmanager:...
# 4m. OpenTelemetry export (API + boxes → collector). All [optional]; default to the
# in-cluster OtelCollector wired automatically.
# OTEL_ENABLED=true
# OTEL_EXPORTER_OTLP_ENDPOINT= # default: in-cluster collector
# OTEL_EXPORTER_OTLP_HEADERS= # e.g. authorization=Bearer xxx
# OTEL_LOGGING_ENABLED=true # Proxy structured application logs
# OTEL_COLLECTOR_API_KEY= # collector→API key; default: ADMIN_API_KEY
# 4n. System box images. The live images are the three tag-pinned refs in
# stack/api.ts (BOXLITE_SYSTEM_{BASE,PYTHON,NODE}_IMAGE), pulled anonymously from
# ghcr.io — they are public. The vars below are currently INERT — no code reads them (upstream-
# port residue, see apps/api configuration.ts); setting them has no effect. Documented
# only as reserved names for a future source-registry path.
# BOXLITE_SYSTEM_IMAGE_TAG=v0.1.0
# BOXLITE_SYSTEM_SOURCE_REGISTRY_URL=
# BOXLITE_SYSTEM_SOURCE_REGISTRY_USERNAME=
# BOXLITE_SYSTEM_SOURCE_REGISTRY_PASSWORD=
# BOXLITE_SYSTEM_SOURCE_REGISTRY_PROJECT_ID=
#
# Unlike the five above, the next one IS read. It lists the registries a
# tenant-supplied box image may be pulled from; unset leaves the API on its
# built-in list (docker.io, quay.io, gcr.io, public.ecr.aws). Comma-separated
# hosts, port included when the registry uses one. A host that resolves inside
# the deployment is refused unless it appears here verbatim — which is how the
# local stack points at its own registry.
#
# ghcr.io is left out of the built-in list because a runner built before
# runners stopped holding registry credentials still applies GHCR_TOKEN (above)
# by host to every pull, so a tenant naming a private ghcr.io image would have
# it fetched as the operator. Add ghcr.io here only once every runner serves a
# build that holds no credential. Check each host: a failed runner upgrade
# stops with the later hosts still on the old build, and an api-only deploy
# upgrades none.
# BOXLITE_IMAGE_REGISTRY_ALLOWLIST=docker.io,quay.io,gcr.io,public.ecr.aws
#
# [optional] How many images one organization may pull for the first time per
# window: a create whose image the catalog cannot answer yet spends one, and
# the one past the limit gets a 429 with Retry-After. Positive integers; a
# value that is not one stops the API at boot. Unset keeps 6 per 60 seconds.
# BOXLITE_IMAGE_COLD_PULL_LIMIT=6
# BOXLITE_IMAGE_COLD_PULL_WINDOW_SECONDS=60
# 4o. Misc. All [optional].
# DEFAULT_REGION_ID — region id the extra-runner registration targets (default "us").
# DEFAULT_REGION_ID=us
# BOXLITE_API_URL — API base URL the OtelCollector calls back (default
# https://api.<STACK_DOMAIN>/api).
# BOXLITE_API_URL=
# 4p. Outbound mail (Amazon SES). The stack verifies one SES domain identity and
# sends through the SES SMTP interface; the API's only email is the organization
# invitation, and Auth0 sends the auth mail (section 2) through the same account.
#
# MAIL_DOMAIN is the verified sender domain — the API sends as
# no-reply@<MAIL_DOMAIN>, which SES refuses to let drift from the identity, so the
# From address is derived rather than configurable. Default: mail.boxlite.ai.
#
# One stage per domain: an SES identity is unique per account and region, so a
# second stage sharing MAIL_DOMAIN fails to create it. Give a stage its own
# subdomain (mail.dev.boxlite.ai) — which also keeps its bounces off the shared
# domain's reputation — or adopt the existing identity in stack/mail.ts with
# `sst.aws.Email.get`.
# MAIL_DOMAIN=mail.boxlite.ai
#
# The credential is NOT set here: SMTP_USER and SMTP_PASSWORD are stage secrets,
# because an SES SMTP credential is an IAM user's access key and the deploy role
# is deliberately unable to create one (docs/aws/security.md). Mint and store both,
# once per stage, with the operator's own AWS credentials:
# npm run bootstrap -- --stage <stage> --provision-ses
# Rerunning rotates the key. Until they are set the stack still deploys, the API
# reports email as disabled at boot, and invitations are created but not sent.
#
# That command also requests SES production access for the region (transactional),
# which a new account needs before it can send to anyone but verified recipients;
# AWS answers within 24h, and rerunning is a no-op while the review is open.
#
# The one step it cannot do for you, and prints as a reminder: point Auth0's email
# provider at the same SMTP credential — host email-smtp.<region>.amazonaws.com on
# port 465 — which is what section 2's "external email provider" means in practice.