Remove SAM translator dependency, validate SAM templates via schemas#4491
Open
kddejong wants to merge 1 commit into
Open
Remove SAM translator dependency, validate SAM templates via schemas#4491kddejong wants to merge 1 commit into
kddejong wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4491 +/- ##
==========================================
- Coverage 94.42% 94.39% -0.04%
==========================================
Files 429 431 +2
Lines 15097 15121 +24
Branches 2915 2923 +8
==========================================
+ Hits 14256 14273 +17
- Misses 461 465 +4
- Partials 380 383 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
kddejong
force-pushed
the
remove-sam-translator
branch
5 times, most recently
from
May 13, 2026 20:23
fdb75ab to
aefb4dc
Compare
kddejong
force-pushed
the
remove-sam-translator
branch
from
May 13, 2026 22:43
aefb4dc to
054499d
Compare
kddejong
marked this pull request as ready for review
May 14, 2026 15:48
kddejong
force-pushed
the
remove-sam-translator
branch
2 times, most recently
from
June 25, 2026 22:58
d0b4e98 to
ca2ffa8
Compare
kddejong
force-pushed
the
remove-sam-translator
branch
3 times, most recently
from
July 15, 2026 15:50
3193d4d to
797d2d3
Compare
Replace the aws-sam-translator runtime dependency with direct JSON Schema validation of SAM resource types. SAM templates are now validated against schemas from the enhanced schemas service using the same provider schema infrastructure as CloudFormation resources. - Remove _sam.py transform module and aws-sam-translator dependency - Add _sam_globals.py to merge Globals section into SAM resources - Add E3724 rule for Globals section validation - Add E3066 rule for SAM resource attributes (Connectors, IgnoreGlobals) - Extend Lambda rules to also match AWS::Serverless::Function paths - Treat SAM resources as module-like for sub-resource Ref/GetAtt wildcard - Handle unresolvable schema pointers gracefully in GetAtt validation - Inject SAM implicit resources (roles, versions, aliases, stages, etc.) Fixes aws-cloudformation#4556
kddejong
force-pushed
the
remove-sam-translator
branch
from
July 15, 2026 16:16
797d2d3 to
5e771ed
Compare
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
Replace the
aws-sam-translatorruntime dependency with direct JSON Schema validation of SAM resource types. SAM templates are now validated against schemas from the enhanced schemas service, using the same provider schema infrastructure as CloudFormation resources.Changes
_sam.pytransform module andaws-sam-translatordependency_sam_globals.pyto merge Globals section properties into SAM resourcesAWS::Serverless::FunctionpathsBehavioral Notes
!Ref MyFunctionRoleand!GetAtt MyFunction.Arnpass via the wildcard mechanismTesting
Fixes #4556