aws-cloudformation / cfn-lint

CloudFormation Linter
MIT No Attribution
2.4k stars 576 forks source link

Add cfn-lint to CloudFormation SDK #3387

Open bildungsroman opened 6 days ago

bildungsroman commented 6 days ago

Is this feature request related to a new rule or cfn-lint capabilities?

New capability

Describe the feature you'd like to request

Currently, the CloudFormation SDK has a ValidateTemplateCommand that is ...pretty useless as a validator. It would be amazing to have that command run cfn-lint as return the results instead.

Describe the solution you'd like

Have the ValidateTemplateCommand return the results of running cfn-lint on a template.

Additional context

No response

Is this something that you'd be interested in working on?

Would this feature include a breaking change?

isuftin commented 6 days ago

Also, being that AWS SDK does come in a Python flavor, the Python version could pick up cfn-lint libs directly instead of needing to run the commandline binary like I assume non-Python SDKs would

isuftin commented 6 days ago

@bildungsroman -Do you think this issue may be more appropriate in the SDK repos? https://github.com/aws/aws-sdk-js/issues