Onboarding
A working Massdriver organization has four parts:
| Part | Where it comes from | What it gives you |
|---|---|---|
| A catalog | AWS catalog, or the pets catalog | Credentials, resource types and bundles, published from a Git repository you own |
| The official resource types | massdriver-resource-types | Service accounts, Kubernetes clusters and WireGuard tunnels as resources bundles can depend on |
| A platform | Deployed from the catalog (greenfield), or imported from the Terraform you already run (brownfield) | A network, DNS and a place to run containers, set as environment defaults |
| Automations | massdriver-automations | Services that act on Massdriver events: pull request sync, drift checks, change freezes, auto-deploys |
- Install the mass CLI and sign in
Every step after this runs mass. Check
mass versionreports 2.x for both the CLI and the server. - Fork the AWS catalog and turn on its publish workflow
Credentials and resource types publish first, then every bundle. Each push to main publishes what changed.
- Install the official resource types
massdriver-service-account, massdriver-kubernetes-cluster and massdriver-wireguard-tunnel. Automations and onboarding bundles depend on them.
- Connect an AWS account
An IAM role that trusts Massdriver's deployment identity tokens. No keys are stored.
- Stand up the platform project: vpc, dns-zone, ecs-cluster
One project, a dev and a prod environment, three components linked on the canvas.
- Delegate the DNS zone
The zone's certificate is not issued until the parent domain points at it.
- Share the platform with app projects
Grant the VPC, zone and cluster, then set them as environment defaults.
- Import a Massdriver service account
The bundle creates its event destination and calls the API with it.
- Publish massdriver-pr-sync-ecs
The AWS catalog ships the other -ecs automation bundles. pr-sync comes from massdriver-automations.
- Deploy pr-sync on the cluster
An automations project shares the platform's VPC, zone and cluster. The host defaults to pr-sync.<zone>.
- Pin the pull request note on a project
pr-sync writes github/prs to the project's stash. A Liquid note lists what is in review, in checks and merging.
- Ship an app on a runtime
An app is a bundle with no IaC that names lambda-function or ecs-service as its runtime.
Paths​
| Catalog | Start | Automations on | Route |
|---|---|---|---|
| AWS | Greenfield | ECS | Catalogs → Resource types → Greenfield AWS → pr-sync on ECS |
| AWS | Brownfield, from the network | ECS | Catalogs → Resource types → Import the network → dns-zone and ecs-cluster on it → pr-sync on ECS |
| AWS, Azure | Brownfield, from the landing zone | ECS on AWS | Catalogs → Resource types → Import the landing zone → an app and its data bundles → pr-sync on the imported cluster |
| Any | Brownfield, from Kubernetes | A namespace | Resource types → Import namespaces from Terraform or by hand → pr-sync in the namespace |
| Pets | Either | — | Pets catalog → Model the platform → Replace the stubs |
| Pets | Either | ECS | Not possible. The pets catalog has no ECS cluster. Take the AWS greenfield route, or run the automations on a Kubernetes namespace. |
| Azure, GCP | — | — | Not written yet. Refer to Azure and GCP. |