A bootstrap catalog for self-hosted Massdriver instances containing artifact definitions, infrastructure bundles, and cloud credentials. This catalog helps you quickly model your platform architecture and developer experience before implementing infrastructure code.
This is your platform foundation. While this guide walks you through the concepts, you're not just following a tutorialβyou're building your actual platform. This repository will serve as your platform team's source of truth for artifact definitions and bundles. Design your infrastructure architecture, iterate on the developer experience, and refine your abstractions hereβthen fill in your OpenTofu/Terraform implementation when you're ready.
tl;dr: Jump to Quick Start
This catalog is yours to customize and extend. Here's the recommended workflow:
- Clone this repository to your organization (keep it privateβit will contain your infrastructure code)
- Set up GitHub Actions to automatically publish to your private Massdriver or use included
maketask to publish - Start experimenting with bundles in your editorβedit schemas, add parameters, define connections
- Watch the developer experience get built in real-time in Massdriver as you iterate on your abstractions
The beauty of this approach: you can refine the entire developer experienceβwhat parameters developers see, how bundles connect, what artifacts are producedβall before writing a single line of infrastructure code.
If you're new to Massdriver, here are the core concepts you'll encounter:
-
Bundle: A reusable, versioned definition of infrastructure or application components. Bundles encapsulate your IaC code (Terraform/OpenTofu/Helm), configuration schemas, dependencies, and policies into a single deployable unit. Think of them as "infrastructure packages" with built-in guardrails.
-
Artifact Definition: A JSON Schema contract that defines how infrastructure components can connect to each other. Artifact definitions ensure type safetyβyou can't connect incompatible components. Each has
data(encrypted secrets/credentials) andspecs(public metadata). -
Artifact: The actual instance of an artifact definition produced by a deployed bundle. For example, when you deploy a PostgreSQL bundle, it emits a PostgreSQL artifact containing connection details that other bundles can consume.
-
Parameters (params): User-configurable inputs for a bundle, like instance sizes, database names, or feature flags. These define what developers can customize when deploying infrastructure.
-
Connections: Dependencies between bundles. When a bundle declares it needs a connection to a "network" artifact, you must link it to another bundle that produces a network artifact. This is how you compose infrastructure components.
-
Project: A logical grouping of related infrastructure, like "ecommerce-platform" or "data-pipeline". Projects contain one or more environments.
-
Environment: A deployment target within a project, like "development", "staging", or "production". Each environment has its own canvas where you design and deploy infrastructure.
-
Canvas: The visual diagram in the Massdriver UI where you add bundles, connect them together, and configure parameters. It's your infrastructure design board.
-
Package: An instance of a bundle configured and deployed to a specific environment. When you add a bundle to your canvas and configure it, you're creating a package. Think of it like the relationship between a class and an object in programmingβbundles are the reusable definitions, packages are the deployed instances.
Credential definitions are special artifact definitions that define how Massdriver authenticates to your cloud providers. They specify the authentication contract between Massdriver and your cloud accounts.
This catalog includes baseline definitions for the three major cloud providers:
aws-iam-role.json- AWS IAM Role credentialsazure-service-principal.json- Azure Service Principal credentialsgcp-service-account.json- GCP Service Account credentials
Note: These are starting points. Customize them to match the provider block requirements of your OpenTofu/Terraform code.
Artifact definitions are JSON Schema-based contracts that define how infrastructure components can interact with each other in Massdriver. Think of them as type definitions for your infrastructureβthey ensure that when you connect a database to an application, both sides speak the same language.
Each artifact definition has two parts:
data: Encrypted connection details passed between bundles during automationβIAM policies that downstream services can assume, secret store IDs for credential access, database hostnames, API endpoints, security group IDs. This is the connective tissue that's often cumbersome to automate manually but is vital for compliance and security.specs: Public metadata (region, tags, capabilities) visible in the UI
Tip
Security best practice: While artifact data is encrypted at rest and in transit (and access is logged when queried via API), we recommend passing references to your cloud secret stores rather than the secrets themselves. For example, pass an AWS Secrets Manager ARN, Azure Key Vault ID, or GCP Secret Manager resource nameβthen let downstream bundles retrieve secrets directly from your cloud provider. This provides an additional security layer and prevents secrets from being stored outside your cloud environment.
This catalog includes example artifact definitions for common infrastructure patterns:
network.json- Example network/VPC abstraction (subnets, CIDR blocks, routing)postgres.json- Example PostgreSQL database connection contractmysql.json- Example MySQL database connection contractbucket.json- Example object storage bucket access contract
Why they matter: Artifact definitions enable type-safe infrastructure composition. You can't accidentally connect a PostgreSQL artifact to a bundle expecting MySQLβthe system validates compatibility at design time, before any infrastructure is deployed.
Use these example artifact definitions to:
- Define the contract between your IaC modules (what data gets passed from one to another)
- Model how services connect together in your architecture
- Design your project and environment structure
- Plan the developer experience before writing infrastructure code
- Then customize them to match your organization's specific needs
Bundles are reusable, versioned definitions of cloud infrastructure or application components. A bundle encapsulates everything needed to provision and manage a piece of infrastructure: the IaC code, configuration schemas, dependencies, outputs, and policies.
Bundles provide a safe self-service framework where you (the platform team) encode best practices into ready-to-use modules, and developers get a simple interface to deploy what they need.
This catalog includes template bundles with complete schemas and placeholder infrastructure code:
network/- Network/VPC provisioningpostgres/- PostgreSQL database provisioningmysql/- MySQL database provisioningbucket/- Object storage bucket provisioningapplication/- Application deployment template
Each bundle includes:
- β
Complete
massdriver.yamlconfiguration - β Parameter schemas - Define your IaC variables (tfvars, Helm values) and customize the UI form for user configuration (instance sizes, database names, etc.)
- β Connection schemas - Define dependencies on artifacts from other bundles, enabling secure access to their encrypted data (credentials, IAM policies) and specs (metadata)
- β Artifact schemas - Define what infrastructure this bundle produces for others to consume
- β UI schemas - Control how the configuration form looks and behaves
- π§ Placeholder OpenTofu/Terraform code (replace with yours)
These bundles let you model first, implement later. Use the schemas to plan your architecture and test the developer experience in the Massdriver UI, then fill in the actual infrastructure code when you're ready.
- Self-hosted Massdriver instance configured
- Massdriver CLI (
mass) installed and authenticated - OpenTofu or Terraform installed (for implementing bundles)
Important
This catalog requires Massdriver CLI version 1.13.4 or higher. Check your version with mass version and upgrade if needed: Download latest release
-
Clone this repository
git clone <your-private-repo-url> cd massdriver-catalog
-
Update GitHub URLs
Replace
YOUR_ORGwith your actual GitHub organization name throughout the repository. This updatessource_urlfields in bundles and links in operator runbooks to point to your repository. -
Set up pre-commit hooks (optional but recommended)
pip install pre-commit pre-commit install
This will automatically format JSON/YAML, validate Terraform, and check for common issues before each commit.
-
Explore and customize
- Review artifact definitions in
artifact-definitions/ - Explore bundle schemas in
bundles/*/massdriver.yaml
- Review artifact definitions in
-
Model your platform
First publish the template bundles to your organization. After you get a feel for organization your resources in Massdriver, you'll update these modules with your IaC.
make all- Open the Massdriver UI
- Create projects - Logical groupings of infrastructure that can reproduce environments. Examples include application domains ("ecommerce", "api", "billing") or platform infrastructure ("network", "compute platform", "data platform")
- Create environments within projects - Named environments ("dev", "staging", "production"), preview environments ("PR 123"), or regional deployments ("Production US East 1", "US West 2")
- Add bundles to your canvas (the visual diagram where you design your architecture)
- Connect bundles togetherβlinking outputs (artifacts) from one bundle to inputs (connections) of another passing configuration between provisioning pipelines (no copypasta! no brittle scripts!)
- Configure parameters to test what the developer experience feels like
-
Implement infrastructure code
- Customize credential definitions to match your provider blocks, then publish them:
make publish-credentials
- When ready, replace placeholder code in
bundles/*/src/with your OpenTofu/Terraform - Test locally with
tofu initandtofu planor run rapid infrastructure testing withmass bundle publish --development - Update schemas if your implementation needs different parameters
- Customize credential definitions to match your provider blocks, then publish them:
-
Publish to Massdriver
make all
[!IMPORTANT] You'll probably want to replace
make allwith our Artifact Definition and Bundle publishing GitHub Actions.Publishing makes your artifact definitions and bundles available in your Massdriver instance. Once published, you'll see them in the Massdriver UI and can add them to your environment canvases.
This command will:
- Clean up any previous build artifacts
- Publish artifact definitions to your Massdriver instance
- Build all bundles (generates schema JSON files from
massdriver.yaml) - Validate all bundles with OpenTofu, Helm, etc.
- Publish all bundles to your Massdriver instance using your default
massCLI profile
This catalog is designed for a three-phase approach: model your architecture, implement the infrastructure code, then continuously improve.
- Use the provided artifact definitions and bundle schemas as-is (no infrastructure code needed yet)
- Create projects and environments in the Massdriver UI
- Add bundles to your canvas (creating packages)
- Connect them by linking artifact outputs to connection inputs
- Configure parameters to test what the developer experience feels like
- Design artifact
datato transmit sensitive data between bundles - Design artifact
specsto surface infrastructure metadata into the Massdriver UI - Iterate on artifact definitions and bundle scopes until they feel right
Goal: Understand what services you want to offer, how they connect, and what the developer experience should be. You're designing the self-service platform interface before writing any infrastructure code.
Key insight: This phase is about discovering the right abstractions. Does it make sense to have separate postgres and mysql bundles? Should your network bundle produce separate "public subnet" and "private subnet" artifacts, or one combined "network" artifact? The schemas let you explore these questions quickly without committing to implementation details.
Don't aim for perfectionβaim for feedback. Get a working version in front of your developers and iterate based on their input. The abstractions that make sense on paper often need refinement once developers actually use them. You can always add more bundles, refine parameters, or adjust artifact definitions later. Real developer feedback is more valuable than theoretical perfection.
Tip
Check out the Getting Started Guide for detailed documentation on bundle and artifact definition development.
- Replace placeholder OpenTofu/Terraform in
bundles/*/src/ - Test your infrastructure code locally with
tofu plan - Update parameter schemas if your implementation needs different inputs
- Publish with
make(or git push with our GitHub Actions) to make bundles available in Massdriver - Deploy packages to test environments and validate everything works
Goal: Fill in the infrastructure code that matches your architectural model.
Key benefit: Because you already validated the architecture and developer experience in Phase 1, you're implementing against a proven design. You know what parameters developers need, what connections make sense, and what artifacts to produce.
- Add more bundles as needed
- Create custom artifact definitions for your organization
- Refine parameter validation and UI schemas
- Use release channels and strategies to automate version distribution and upgrades across environments
- π Say farewell to ticket ops
.
βββ README.md # This file
βββ Makefile # Automation for publishing
βββ credential-artifact-definitions/ # Cloud provider credentials
β βββ aws-iam-role.json
β βββ azure-service-principal.json
β βββ gcp-service-account.json
βββ artifact-definitions/ # Infrastructure artifact contracts
β βββ bucket.json
β βββ mysql.json
β βββ network.json
β βββ postgres.json
βββ bundles/ # Infrastructure and application bundles
βββ application/ # Example Application
βββ bucket/ # Object storage
βββ mysql/ # MySQL database
βββ network/ # VPC/Network
βββ postgres/ # PostgreSQL database
The credential definitions in credential-artifact-definitions/ define the authentication contracts for cloud providers. Customize these to match your organization's provider block requirements.
Example: If your AWS provider block requires additional fields like external_id or session_name, add them to the aws-iam-role.json schema.
Artifact definitions in artifact-definitions/ define the contracts between bundlesβwhat data gets passed from one to another.
Each artifact definition must have two top-level sections:
data: Encrypted-at-rest information like credentials, connection strings, IAM policies, and security group IDs. This data is securely passed to downstream bundles that need it.specs: Public metadata like cloud region, tags, or capability flags. This information is searchable and displayed in the UI but doesn't contain secrets.
Customize artifact definitions to:
- Add cloud-specific metadata in
specs(region, availability zones, resource tags) - Include additional connection details in
datathat your applications need (ports, endpoints, credentials) - Define IAM policy structures and security group references
- Add validation rules to ensure data integrity
Example: If your applications need to know whether a database supports read replicas, add a read_replicas field to the artifact's specs. If they need the replica endpoint, add it to the artifact's data.
Tip
When you standardize what your bundles produceβdefining consistent artifact schemasβyou can automate compliance and security policies across all resources of that type. This eliminates the brittle copy-paste scripts and custom glue code typically needed to wire infrastructure together, replacing them with validated, reusable contracts.
Each bundle's massdriver.yaml defines the complete contract for that infrastructure component:
-
params: Input parameters that users configure when deploying (instance sizes, database names, feature flags, etc.). These become variables in your IaC code. They provide extra UI controls and validations not available in most IaC tools.
-
connections: Input artifacts that this bundle depends on. For example, a database bundle might require a connection to a network artifact. Connections securely pass data (credentials, IAM policies, endpoints) from one bundle to another during provisioning. These become variables in your IaC code, and Massdriver validates that only compatible artifacts can be connected.
-
artifacts: Output artifacts that this bundle produces for other bundles to consume. For example, a database bundle produces a database artifact containing connection details. You populate these in your IaC code's outputs.
-
ui: UI schema that controls how the configuration form is renderedβfield ordering, help text, conditional visibility, custom widgets, etc. This follows the React JSON Schema Form specification.
Warning
Params and connections share the same namespace in your IaC code. If you have a param named "database" and a connection named "database", they will conflict as the same variable (e.g., variable "database" in Terraform). Use distinct names to avoid collisions.
Customize these schemas to match your desired developer experience. The schemas define the self-service interface your developers will use, so invest time in making them clear, well-documented, and user-friendly.
When you're ready to implement the actual infrastructure provisioning, replace the placeholder OpenTofu/Terraform code in bundles/*/src/.
How it works: Massdriver bundles combine policy as code, IaC, and pipelines into a single deployable unit. They define the interface (inputs/outputs), dependencies (connections), and workflow stepsβbringing compliance and security scanning into the bundle itself, instead of maintaining snowflake pipelines scattered across hundreds of repos. Massdriver automatically generates input variables from your params and connections schemas, then executes your IaC code with those values.
To implement a bundle:
- Keep the
_massdriver_variables.tffile - it's auto-generated bymass bundle buildfrom your schemas. (Optional: You can stop defining variables directly in OpenTofu/Terraform/Bicep and just define them inmassdriver.yaml. The build process will generate them.) - Replace
main.tfwith your infrastructure code - Add additional
.tffiles as needed (variables.tf, outputs.tf, etc.) - Use Massdriver-provided variables:
var.md_metadata- Massdriver metadata (name, package ID, environment)
- Output artifact data that matches your artifacts schema (connection details, resource IDs, etc.)
Example: If your params schema defines a database_name parameter, access it in Terraform as var.database_name. If your connections schema requires a network artifact named net, access its VPC ID as var.net.data.infrastructure.vpc_id.
Once you've modeled your architecture and started implementing bundles, dive deeper into Massdriver with our comprehensive getting started guide:
-
π Getting Started Guide - Step-by-step tutorials covering:
- Publishing and deploying bundles
- Connecting bundles with artifacts
- Creating bundles from existing OpenTofu/Terraform modules
- Using bundle deployment metadata for tagging and naming
-
π» Getting Started Repository - Example bundles with detailed walkthroughs that teach you:
- How to work with the Mass CLI
- Bundle development best practices
- Real-world patterns and techniques
These resources complement this catalog by showing you how to work with bundles once you have them implemented.
- π GitHub Actions - Automate artifact definition and bundle publishing with CI/CD workflows
See open issues for upcoming features and the full roadmap.
- Start with modeling: Use the schemas to plan before implementing
- Single-purpose bundles: Keep bundles focused (e.g.,
postgres, notrds) - Iterate on abstractions: Refine artifact definitions based on usage
- Test the developer experience: Configure bundles in the UI before implementing
- Version your bundles: Use semantic versioning for stable releases
- Rush to implementation: Model your architecture first
- Create generic bundles: Be specific about use cases
- Skip documentation: Update descriptions and help text
- Ignore validation: Use JSON Schema to prevent errors
- Forget about UI: Good UX makes adoption easier
- π Massdriver Documentation - Official documentation
- π Getting Started Guide - Getting started with bundle development
- π» Getting Started Repository - Accompanying code
- π― Core Artifact Definitions - Standard artifact types in the Massdriver SaaS Platform. They're great to use as inspiration or a foundation.
- π¬ Massdriver Slack - Community support
Questions or issues?
- Review existing bundle schemas for patterns in this catalog
- Check out the Getting Started Guide for detailed tutorials
- Join our Slack community for help
- Reach out to Massdriver support
Private repository - customize for your organization's needs.
Remember: This catalog is your platform foundation. Clone it, customize it, make it yours. The goal is to help you think through architecture and developer experience before writing infrastructure code. Start modeling today, implement tomorrow.