Introduction
Alien provides infrastructure for deploying and operating software in remote environments at scale, like your customers' cloud accounts. This lets your software run close to:
- Sensitive data. Process data in the customer's cloud account, so it never reaches yours.
- Private networks. Reach a database in the customer's VPC or the API of their Kubernetes cluster.
- Local resources. Read the files and processes on one machine, such as an employee's laptop.
- Latency-critical workloads. Answer requests from the customer's VPC, next to the app that sends them.
To start, give this prompt to your coding agent in your repository. It asks what your customer requires, reads your code, proposes the smallest option that meets it, and builds it.
If you already ship a Helm chart, a Compose file, ECS services, or Terraform, start from it.
What runs where
A common design is control plane ⇄ data plane. The control plane stays in your cloud and handles sign-in, customer accounts, deployments, and billing, with no customer data. The data plane runs in each remote environment, with your core services and the data they work with.
Architecture diagram. Control plane manages 2 remote environments: data plane (customer-1 · AWS account), outbound only; data plane (customer-2 · Google Cloud), outbound only.
Not every product splits this way. Often the product stays in your cloud and uses the customer's own key, through customer-managed keys, or their own AI models, through local AI models. Others deploy only a small agent, or the whole product. Architecture design compares them, from the smallest option to the largest.
The data plane can also run in your own cloud, as many times as you need: shared across customers, or dedicated to one customer. Moving it changes where the data lives, not the architecture.
An example
A data plane built from your existing container image, with a bucket and a database next to it:
import * as alien from "@alienplatform/core"
const files = new alien.Storage("files").build()
const db = new alien.Postgres("db").build()
const api = new alien.Container("api")
.code({ type: "image", image: "ghcr.io/acme/api:1.4.0" })
.port(8080)
.link(files)
.link(db)
.permissions("execution")
.build()
export default new alien.Stack("acme-data-plane")
.add(files, "frozen") // created once, at initial setup
.add(db, "frozen")
.add(api, "live") // updated on every release
.permissions({
profiles: {
execution: {
files: ["storage/data-read", "storage/data-write"],
db: ["postgres/data-access"],
},
},
})
.build()Each resource becomes a native service wherever the stack runs. The customer's admin picks the platform and compute at initial setup, the one-time step they run in their own account:
alien.Container("api")EC2 machines managed by Alienalien.Storage("files")S3 bucketalien.Postgres("db")Aurora PostgreSQLalien.Queue("jobs")SQS queuealien.Kv("cache")DynamoDB tablealien.Vault("secrets")SSM Parameter Store
CloudFormation or Terraform grants Alien a role in the customer's account. Releases are pushed with API calls.
The bucket and the database are frozen: initial setup creates them once, and no later update can change or delete them. The container is live: Alien updates it on every release, with no action from the admin. See Frozen and live.
Each customer's copy of the stack is a deployment. One command updates every deployment:
alien releaseNext
- Quickstart: build and deploy a stack by hand.
- How Alien works: what the admin does once, and what Alien does on every release.
- Architecture design: decide which part of your product runs in each customer's environment.
- Customer-managed keys or local AI models: start with one API call from your hosted product.