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

AWS::NoValue not factored #149

Open scolebrook opened 5 years ago

scolebrook commented 5 years ago

In a AWS::RDS::DBCluster resource, I'm seeing an error message about having the SnapshotIdentifier and MasterUserPassword properties together which is correct. Except the SnapshotIdentifier properties value is an If function that returns AWS::NoValue when no snapshot id is provided in a template, therefore removing this property.

And even if that wasn't the case, the cft would still work with MasterUserPassword being ignored.

The plugin handles this case correctly for the AWS::RDS:DBInstance resource. It would be helpful if it handled it the same way here. The documentation about these properties in both resources types is practically identical.