Skip to content

duplicate-deployment

The same Service, Environment and Target appear twice.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:14:5 error duplicate-deployment Service "shop:web" is already deployed to "shop:eks-prod" in Environment "prod" at shop/more.yaml:2

A Deployment is one Service in one Environment on one Deployment Target, and those three name it: it has no id of its own. A second one with the same three could carry a different url, with nothing to say which is right.

shop/more.yaml:

deployments:
- { service: web, environment: prod, target: eks-prod, url: https://www.shop.example.com }

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, url: https://shop.example.com }

Remove the second Deployment, or merge its url and endpoints into the first.

shop/more.yaml: removed.

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