Skip to content

Fix E3009 false positive for Fn::Transform in additional properties#4368

Merged
kddejong merged 1 commit intoaws-cloudformation:mainfrom
kddejong:fix/issue/4363
Feb 23, 2026
Merged

Fix E3009 false positive for Fn::Transform in additional properties#4368
kddejong merged 1 commit intoaws-cloudformation:mainfrom
kddejong:fix/issue/4363

Conversation

@kddejong
Copy link
Copy Markdown
Contributor

Exclude Fn::Transform from additional properties validation when it's in the validator's context functions list. This allows Fn::Transform to be used in CloudFormation Init metadata and other contexts where CloudFormation supports it.

Fixes #4363

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Exclude Fn::Transform from additional properties validation when it's
in the validator's context functions list. This allows Fn::Transform
to be used in CloudFormation Init metadata and other contexts where
CloudFormation supports it.

Fixes aws-cloudformation#4363
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.52%. Comparing base (0bbabc9) to head (f45279b).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4368      +/-   ##
==========================================
- Coverage   93.54%   93.52%   -0.02%     
==========================================
  Files         418      418              
  Lines       14145    14148       +3     
  Branches     2817     2818       +1     
==========================================
  Hits        13232    13232              
- Misses        567      568       +1     
- Partials      346      348       +2     
Flag Coverage Δ
unittests 93.51% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kddejong kddejong merged commit a46657d into aws-cloudformation:main Feb 23, 2026
21 checks passed
@kddejong kddejong deleted the fix/issue/4363 branch February 23, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E3009 Additional properties are not allowed ('Fn::Transform' was unexpected)

1 participant