shalupov / idea-cloudformation

AWS CloudFormation plugin for IntelliJ-based IDEs (IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio, DataGrip, CLion)
https://teamcity.jetbrains.com/viewType.html?buildTypeId=IdeaAwsCloudFormation_Master_Build&guest=1
Apache License 2.0
136 stars 27 forks source link

Is validation scriptable? #153

Closed iainelder closed 5 years ago

iainelder commented 5 years ago

I have a deployment script that calls validate-template on all the template files before attempting to deploy them to AWS.

The validate-template API call, as I'm sure you know, misses a lot of errors that this plugin can reliably detect before deployment.

Would it be possible to script this plugin to validate my templates in a script instead of calling validate-template?

Thanks!

shalupov commented 5 years ago

Have you checked out https://github.com/aws-cloudformation/cfn-python-lint ?

As for this plugin it may be possible via https://www.jetbrains.com/help/idea/command-line-code-inspector.html, but I haven't checked it myself.