martysweet / cfn-lint

A CloudFormation JSON and YAML Validator
MIT License
163 stars 38 forks source link

Reports property as invalid when it is valid #201

Closed aap69 closed 5 years ago

aap69 commented 5 years ago

When validating a cfn template with a resource of type AWS::EC2::SpotFleet, I get the following error:

cfn-lint error:

2018-10-30T06:42:04.6891330Z 1 crit 2018-10-30T06:42:04.6891404Z Resource: Resources > spotFleet > Properties > SpotFleetRequestConfigData > LaunchTemplateConfigs 2018-10-30T06:42:04.6891539Z Message: LaunchTemplateConfigs is not a valid property of AWS::EC2::SpotFleet.SpotFleetRequestConfigData 2018-10-30T06:42:04.6892453Z Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-spotfleet.html 2018-10-30T06:42:04.6892703Z 2018-10-30T06:42:04.6892914Z Template invalid!

template snippet for resource:

spotFleet: Type: AWS::EC2::SpotFleet DependsOn:

AWS cfn documentation shows valid property LaunchTemplateConfigs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html

The template launches successfully, as expected.

martysweet commented 5 years ago

Hi @aap69, can you test this with the latest version of cfn-lint v1.9.1. The aws cloudformation specification has just been updated. Thanks!

aap69 commented 5 years ago

Hi @martysweet, v1.9.1 has fixed this issue. Many thanks (: šŸ‘