require-digitalocean-app-spec-region
Require a root region in DigitalOcean App Platform specs.
Targeted pattern scopeâ
- Top-level
region:key in.do/app.yamlor.do/app.yml.
What this rule reportsâ
This rule reports DigitalOcean App Platform specs that omit the root deployment region.
Why this rule existsâ
Region selection affects latency, compliance boundaries, and cost. Requiring an
explicit region value in the app spec makes infrastructure placement decisions
clear in version control.
â Incorrectâ
name: example-app
services:
- name: web
â Correctâ
name: example-app
region: nyc
services:
- name: web
When not to use itâ
Disable this rule if your repository intentionally relies on external defaults for DigitalOcean region selection.
Rule catalog ID: R080