The Resource catalog is the home for anything that would benefit being being tracked in a system of record but doesn't belong in the Service Catalog, such as infrastructure assets (databases, buckets, caches, AWS accounts).
Every Resource in the catalog is associated with a Resource Definition, i.e. a "type" of resource (think
Each definition requires a
type and a JSON schema that outlines the spec any resource of that
type should conform to.
A resource must be of a
type that has a corresponding Resource Definition. Each resource of that type will
x-cortex-definition validated against this schema.
There are a few different ways of getting Resources into your catalog. Using our Resource Import flow, you can import resources from cloud providers such as AWS or GCP. However, this won't work for custom resource types – you'll have to use one of the following two methods.
Every resource is defined as YAML. This YAML is fully compatible with
cortex.yaml, meaning you can specify anything for a resource that you
would for a service – including ownership, git, on-call, SLOs, etc.
There main differences between a service YAML and a resource YAML are two additional keys must be specified
in addition to what a service requires:
title: My Database
description: This is my cool MySQL database.
x-cortex-definition block will be validated using the resource definition associated
When using GitOps you can define any number of resources that are associated with
your service, e.g. a database, s3 buckets, etc in the same repository. In general, the best place to put these
resources is at your repository's root directory within
.cortex/catalog. For example a simple service might
have the structure:
│ └── catalog
│ ├── database.yml
│ └── s3-bucket.yml
Any file found within the
.cortex/catalog directory will be automatically picked up and parsed as a Catalog Entity.
You can define services within
.cortex/catalog if you'd like, instead of leaving it at the root. The only
requirement is that any file named
x-cortex-type: service (which is the default
and can be left out of the file), and contains no