Choose a Topology
A project has one canvas type and one environment topology. It can get resources from other projects. Refer to The rules.
billingApplication canvas
- One copy per
- Stage, and region in production
- Environments
- One per stage, and one per region in production when the service runs in several.
- Connects
- Components are linked on the canvas. The network, cluster and credentials arrive as environment defaults.
Environments
- Stages
Each environment is a step toward production:
dev,staging,prod. Comparing two stages should show only size and credentials.
Works with
- Platform Layer
Each environment sets the platform's network and cluster as environment defaults. They never appear on this blueprint.
- Singleton
The container registry and other company-wide resources come from the organization project as environment defaults.
Blueprint file pre-alpha
The file format is a proposal in an RFC. Massdriver does not read it yet.
blueprint.yamlyaml
# Pre-alpha: this file format is a proposal in an RFC. Massdriver does not read it yet.
# Bundle names are examples. Use the bundles in your organization.
version: 1
project: billing
# No network or cluster components: both arrive as environment defaults.
components:
api: { bundle: web-service, name: API }
worker: { bundle: worker-service, name: Worker }
cron: { bundle: scheduled-job, name: Scheduled Job }
db: { bundle: aws-rds-postgres, name: Database }
cache: { bundle: aws-elasticache-redis, name: Cache }
queue: { bundle: aws-sqs-queue, name: Queue }
alarms: { bundle: service-alarms, name: Alarms and Dashboards }
links:
- db.database -> api.database
- db.database -> worker.database
- db.database -> cron.database
- cache.redis -> api.cache
- queue.queue -> api.jobs
- queue.queue -> worker.jobs
- api.service -> alarms.service