Add new SSM parameter value types for EC2 and Lambda#4359
Open
kpushkin-ias wants to merge 1 commit intoaws-cloudformation:mainfrom
Open
Add new SSM parameter value types for EC2 and Lambda#4359kpushkin-ias wants to merge 1 commit intoaws-cloudformation:mainfrom
kpushkin-ias wants to merge 1 commit intoaws-cloudformation:mainfrom
Conversation
kddejong
approved these changes
Feb 4, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4359 +/- ##
==========================================
- Coverage 93.54% 93.53% -0.01%
==========================================
Files 418 418
Lines 14145 14145
Branches 2817 2817
==========================================
- Hits 13232 13231 -1
Misses 567 567
- Partials 346 347 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kddejong
added a commit
to kddejong/cfn-python-lint
that referenced
this pull request
Feb 5, 2026
… types CloudFormation accepts any AWS::SSM::Parameter::Value<*> and List<*> pattern but only validates specific documented types. Changed validation to accept all patterns instead of maintaining a hardcoded enum list. Added W2002 warning rule to alert users when using parameter types that aren't officially documented by CloudFormation, as these won't be validated by CloudFormation. Changes: - Modified parameter type schema to use anyOf with patterns - Created W2002 CfnLintKeyword rule for unsupported type warnings - Added comprehensive tests for new behavior Fixes the need for PR aws-cloudformation#4359 and future similar requests.
kddejong
added a commit
to kddejong/cfn-python-lint
that referenced
this pull request
Feb 5, 2026
… types CloudFormation accepts any AWS::SSM::Parameter::Value<*> and List<*> pattern but only validates specific documented types. Changed validation to accept all patterns instead of maintaining a hardcoded enum list. Added W2002 warning rule to alert users when using parameter types that aren't officially documented by CloudFormation, as these won't be validated by CloudFormation. Changes: - Modified parameter type schema to use anyOf with patterns - Created W2002 CfnLintKeyword rule for unsupported type warnings - Added comprehensive tests for new behavior Fixes the need for PR aws-cloudformation#4359 and future similar requests.
kddejong
added a commit
to kddejong/cfn-python-lint
that referenced
this pull request
Feb 5, 2026
… types CloudFormation accepts any AWS::SSM::Parameter::Value<*> and List<*> pattern but only validates specific documented types. Changed validation to accept all patterns instead of maintaining a hardcoded enum list. Added W2002 warning rule to alert users when using parameter types that aren't officially documented by CloudFormation, as these won't be validated by CloudFormation. Changes: - Modified parameter type schema to use anyOf with patterns - Created W2002 CfnLintKeyword rule for unsupported type warnings - Added comprehensive tests for new behavior Fixes the need for PR aws-cloudformation#4359 and future similar requests.
kddejong
added a commit
to kddejong/cfn-python-lint
that referenced
this pull request
Feb 5, 2026
… types CloudFormation accepts any AWS::SSM::Parameter::Value<*> and List<*> pattern but only validates specific documented types. Changed validation to accept all patterns instead of maintaining a hardcoded enum list. Added W2002 warning rule to alert users when using parameter types that aren't officially documented by CloudFormation, as these won't be validated by CloudFormation. Changes: - Modified parameter type schema to use anyOf with patterns - Created W2002 CfnLintKeyword rule for unsupported type warnings - Added comprehensive tests for new behavior Fixes the need for PR aws-cloudformation#4359 and future similar requests.
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.
Issue #, if available:
Description of changes:
This pull request adds support for new AWS SSM parameter value types in
src/cfnlint/helpers.py. These enhancements improve the tool’s ability to validate CloudFormation templates that utilize these parameter types. Practical CFN deployments have demonstrated that these types work as expected and should be validated successfully bycfn-lint.Support for additional AWS SSM parameter value types:
AWS::SSM::Parameter::Value<AWS::EC2::PrefixList::Id>to the list of recognized parameter types.AWS::SSM::Parameter::Value<AWS::EC2::SecurityGroup>to the list of recognized parameter types.AWS::SSM::Parameter::Value<AWS::Lambda::Function::Arn>to the list of recognized parameter types.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.