Repository navigation
feat(aws): upgrade to the latest CloudFormation spec (#1129) - #1165
Merged
Merged
Conversation
Re-baselines the aws lexicon's surface.snapshot.json against a fresh fetch of the CloudFormation Registry schema zip (rolling, no version pin) and bumps the lexicon 0.28.0 -> 0.29.0 for the breaking-severity drift, per chant dev surface-diff lexicons/aws --update-snapshot --bump. #991 (a prior automated attempt at this same upgrade) failed because chant lint flagged Ref(...)/GetAtt(...) calls nested inside Sub-tagged templates in the docs-snippets example (parameter-ref.ts, parameter-cross-file-ref.ts) as EVL001 errors — runLint had no intrinsic registry to recognize those as fold-safe (#1106), fixed by #1110 the day before this run. Reproduced today: `chant lint` on every aws example is clean (0 errors, only pre-existing info/warning diagnostics), and the full regen/validate/build/lint pipeline passes. No composite, component, or lint-rule source needed changes — nothing in lexicons/aws/src imports any of the renamed/removed generated symbols (the "breaking" delta is almost entirely upstream OpsWorks deprecation plus short-name collisions from newly added resources: Blueprint/Recipe/Export/Session/MetadataProperties/PromptRouterTargetModel each disambiguate to a service-prefixed export). Verified via fold-differential and sandbox-differential: 101/101 corpus entries, 0 drift, all classifications unchanged from main. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
awslexicon from a fresh fetch of the CloudFormation Registry schema zip (https://schema.cloudformation.us-east-1.amazonaws.com/CloudformationSchema.zip) — a pinless, rolling "current" spec (no version to bump, unlike the pinned k8s/gcp/docker/gitlab lexicons).lexicons/aws/surface.snapshot.json(10,589 → 10,784 entries) viachant dev surface-diff lexicons/aws --update-snapshot --bump.lexicons/aws/package.json0.28.0 → 0.29.0 (0.x-aware minor bump forbreakingseverity drift).Why #991 failed, and why this run didn't
#991 was a prior automated attempt (opened 2026-07-20) at this same upgrade. It failed with
chant lintexit 1 across thedocs-snippetsexample, but the visible diagnostics in that issue (truncated at the automation's 2000-char-per-step cap) were allinfo/warning— no shownerror. Reproducing the code path:docs-snippets/src/parameter-ref.tsandparameter-cross-file-ref.tseach have anew Bucket({ BucketName: Sub\${Ref(...)}-data`, ... })— a CFN intrinsic call nested inside aSubtagged template, inside a resource constructor.EVL001(packages/core/src/lint/rules/evl001-non-literal-expression.ts) flags exactly this shape unless it can recognizeRef/GetAttas registered, fold-safe intrinsics viacontext.intrinsics— and until yesterday,runLint` never received that registry (#1106), so it flagged every such call as an error, unconditionally.That gap was closed by #1110 (commit
d889a4cc, merged 2026-07-26 22:44 — the day before this branch). With the registry now threaded through,chant linton every one of the 19 aws examples (includingdocs-snippets) exits 0 today — confirmed directly (node_modules/.bin/chant lint <example>for each, pluschant dev surface-diff lexicons/aws's own lint step). This is a lexicon-upgrade-tooling fix, not an upstream CloudFormation spec issue — so this run proceeded rather than stopping.What the new spec changed
Surface delta vs the previous baseline (severity: breaking):
SageMaker::Action/Context/Experiment/TrialComponent/MonitoringScheduleAlert,BedrockAgentCore::CodeInterpreter/TokenVault,QuickSight::Agent/KnowledgeBase,Config::Connector,SecurityHub::Connector,AuditManager::AssessmentFramework,CleanRooms::IntermediateTable,Athena::Session,EC2::TransitGatewayPolicyTable, etc.OpsWorks::*deprecation (Stack/Layer/App/Instance/Volume/UserProfile and their nested property types — OpsWorks Stacks was end-of-lifed by AWS), plus a handful of short-name aliases that got superseded by newly-added resources sharing the same short name (see below).VpcgainsVpcEncryptionControl,Listener/ConformancePack/CloudFormationProduct/etc. fliptaggable: true, several resources gain new optional props/attrs). Two real reclassifications:AWS::DataBrew::RecipeandAWS::BCMDataExports::Exportmoved from top-level resources to nested property types ofDataBrew::Job/BCMDataExports::Exportrespectively (an upstream schema restructuring, not a chant change).Renames are short-name collisions, not breakage
Several "removed" entries are just a generated export losing its short bare name because a new resource in this spec introduced the same short name — the codegen's naming layer resolves collisions by prefixing with the service name. All of these keep an equivalent qualified export and none are referenced anywhere in
lexicons/aws/src(composites, components, lint rules) or in the shipped examples:Blueprint(Bedrock)BedrockBlueprintGlue::Blueprint,OSIS::PipelineBlueprintaddedSession(Macie)MacieSessionAthena::Session,SSM::SessionaddedPromptRouterTargetModel/RoutingCriteria(IntelligentPromptRouter)Bedrock::DefaultPromptRoutershares the same nested property namesMetadataProperties(SageMaker::ModelPackage)SageMaker::Action/Context/Experiment/TrialComponenteach add their ownConfirmed via
npm run build(tsc, 36s, 0 errors) that nothing in the lexicon's own TypeScript source references any bare name that moved.Byte-level output impact
Checked the one case that looked most likely to change existing example output:
AWS::ElasticLoadBalancingV2::Listenerflipstaggable: (unset) -> true, andfargate-alb/shared-alb/shared-alb-api/shared-alb-ui/multi-service-albboth create aListenerand declaredefaultTags(...). Builtfargate-albdirectly (chant build … -o template.json, both--foldand--no-fold) and confirmed no resource — Listener included — gets aTagsproperty injected either way; this project's default-tag auto-injection isn't firing at all in this build path, independent of the taggable-flag change (a pre-existing condition, not something this upgrade touches or regresses). No example's synthesized template bytes change as a result of this upgrade.Gate evidence
git statusafter regen: onlylexicons/aws/package.jsonandlexicons/aws/surface.snapshot.jsonchanged; no untracked files (generated artifacts are gitignored).Test plan
just buildjust lintjust test(full monorepo suite)just check-lexicons(aws 17/17)just fold-differential/just sandbox-differential— 0 drift, no classification changeschant linton all 19 aws examples individually — 0 errorsfargate-alb(fold + no-fold) to confirm no synthesized-output byte changes