Skip to content

unknown-environment

A Deployment, or a Saved Deployment View, names no Environment.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:14:34 error unknown-environment Unknown Environment "production"; did you mean "prod"?

Environments are defined once, in workspace.yaml, so prod means the same thing in every Project. A Deployment that says production when the Environment is prod belongs to no Environment, and nobody asking where the Service runs in prod will find it.

shop/services.yaml:

services:
web:
name: Web
checkout:
name: Checkout
components:
cart:
name: Cart
targets:
eks-prod:
name: EKS prod
kind: cluster
deployments:
- { service: web, environment: production, target: eks-prod }

Use the id of an Environment defined in workspace.yaml, or define the Environment there.

shop/services.yaml:

services:
web:
name: Web
checkout:
name: Checkout
components:
cart:
name: Cart
targets:
eks-prod:
name: EKS prod
kind: cluster
deployments:
- { service: web, environment: prod, target: eks-prod }

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.