Skip to content

Containers

container models a data store, cache, or external system that services read from or write to.

Example

This example models a database container and shows a service writing to and reading from it.

main.ec
container orders-db {
version 1.0.0
name "Orders DB"
summary "Primary transactional store"
container-type database
technology "PostgreSQL 15"
access-mode readWrite
classification internal
residency "eu-west-1"
retention "7y"
}
service OrdersService {
version 1.0.0
writes-to container orders-db@1.0.0
reads-from container orders-db@1.0.0
}

Properties

PropertyTypeRequiredDescriptionExample
versionsemverYesResource version.1.0.0
namestringNoDisplay name (defaults to id)."Orders DB"
summarystringNoShort description."Primary transactional store"
container-typeenumYesContainer category (see types below).database
technologystringNoImplementation detail/version."PostgreSQL 15"
authoritativebooleanNoWhether it is source of truth.authoritative true
access-modeenumNoAccess pattern (read, write, readWrite, appendOnly).readWrite
classificationenumNoData sensitivity class.internal
residencystringNoData residency/region."eu-west-1"
retentionstringNoRetention policy/duration."7y"
ownerreferenceNo (repeatable)Team/user owner reference.owner data-team
servicereferenceNo (repeatable)Service references to this container.service OrdersService@1.0.0
draftbooleanNoMarks resource as draft.draft true
deprecatedbooleanNoMarks resource as deprecated.deprecated true

Container types

TypeUse for
databaseRelational or document databases
cacheRedis, Memcached, etc.
objectStoreS3, GCS, Azure Blob
searchIndexElasticsearch, OpenSearch
dataWarehouseBigQuery, Snowflake, Redshift
dataLakeDelta Lake, Iceberg
externalSaaSThird-party managed services
otherAnything that doesn’t fit above

Examples by type

main.ec
container orders-db {
version 1.0.0
container-type database
technology "PostgreSQL 15"
}
container session-cache {
version 1.0.0
container-type cache
technology "Redis 7"
retention "24h"
}
container assets-bucket {
version 1.0.0
container-type objectStore
technology "AWS S3"
classification internal
}
container product-search {
version 1.0.0
container-type searchIndex
technology "Elasticsearch 8"
}

Used by services

UsageExample
Write to a containerwrites-to container orders-db@1.0.0
Read from a containerreads-from container orders-db@1.0.0