Skip to main content

Onboarding

A working Massdriver organization has four parts:

PartWhere it comes fromWhat it gives you
A catalogAWS catalog, or the pets catalogCredentials, resource types and bundles, published from a Git repository you own
The official resource typesmassdriver-resource-typesService accounts, Kubernetes clusters and WireGuard tunnels as resources bundles can depend on
A platformDeployed 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
Automationsmassdriver-automationsServices that act on Massdriver events: pull request sync, drift checks, change freezes, auto-deploys
Which catalog?
What is already running?
Where will the automations run?
  1. Install the mass CLI and sign in

    Every step after this runs mass. Check mass version reports 2.x for both the CLI and the server.

  2. 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.

  3. Install the official resource types

    massdriver-service-account, massdriver-kubernetes-cluster and massdriver-wireguard-tunnel. Automations and onboarding bundles depend on them.

  4. Connect an AWS account

    An IAM role that trusts Massdriver's deployment identity tokens. No keys are stored.

  5. Stand up the platform project: vpc, dns-zone, ecs-cluster

    One project, a dev and a prod environment, three components linked on the canvas.

  6. Delegate the DNS zone

    The zone's certificate is not issued until the parent domain points at it.

  7. Share the platform with app projects

    Grant the VPC, zone and cluster, then set them as environment defaults.

  8. Import a Massdriver service account

    The bundle creates its event destination and calls the API with it.

  9. Publish massdriver-pr-sync-ecs

    The AWS catalog ships the other -ecs automation bundles. pr-sync comes from massdriver-automations.

  10. Deploy pr-sync on the cluster

    An automations project shares the platform's VPC, zone and cluster. The host defaults to pr-sync.<zone>.

  11. 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.

  12. 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​

CatalogStartAutomations onRoute
AWSGreenfieldECSCatalogs → Resource types → Greenfield AWS → pr-sync on ECS
AWSBrownfield, from the networkECSCatalogs → Resource types → Import the network → dns-zone and ecs-cluster on it → pr-sync on ECS
AWS, AzureBrownfield, from the landing zoneECS on AWSCatalogs → Resource types → Import the landing zone → an app and its data bundles → pr-sync on the imported cluster
AnyBrownfield, from KubernetesA namespaceResource types → Import namespaces from Terraform or by hand → pr-sync in the namespace
PetsEither—Pets catalog → Model the platform → Replace the stubs
PetsEitherECSNot 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.