require-aws-amplify-version
Require a top-level version key in AWS Amplify build specs.
Targeted pattern scopeâ
- Root-level
version:inamplify.ymloramplify.yaml.
What this rule reportsâ
This rule reports Amplify build specs that omit top-level spec version metadata.
Why this rule existsâ
Version metadata anchors parsing/semantics expectations and makes spec intent explicit during review.
â Incorrectâ
frontend:
phases:
build:
commands:
- npm run build
â Correctâ
version: 1
frontend:
phases:
build:
commands:
- npm run build
When not to use itâ
Disable this rule if your repository intentionally uses non-standard Amplify spec material without a version declaration.
Rule catalog ID: R088