require-aws-amplify-version-value
Require AWS Amplify configs to use supported top-level version: 1.
Targeted pattern scopeâ
- Root
version:value inamplify.yml/amplify.yaml.
What this rule reportsâ
This rule reports missing or unsupported top-level version values.
Why this rule existsâ
Amplify build-spec parsing behavior is versioned. Pinning supported version metadata avoids ambiguous config semantics.
â Incorrectâ
version: 2
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 versions.
Rule catalog ID: R102