Skip to content

unknown-target

A Deployment, or a Saved Deployment View’s targets, names no Deployment Target.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:14:48 error unknown-target Unknown Deployment Target "eks-prd" in Project "shop"; did you mean "eks-prod"?

A Deployment says where a Service runs. If its target names no Deployment Target, the Deployment has nowhere to be placed in a Deployment View; a Saved Deployment View that names one narrows to a Target that doesn’t exist.

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-prd }

Use the id of a Target declared in the Project, or project:id for one declared in another Project.

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 }
  • unknown-environment: A Deployment, or a Saved Deployment View, names no Environment.
  • target-outside-environment: A Saved Deployment View’s targets entry has no Deployment in the View’s environment, on it or on any Target inside it.
  • wrong-kind: An id resolves to a kind the field doesn’t accept, such as a Deployment’s service naming a Component or System, or a Relationship’s via naming something other than a Service.

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