aws-cloudformation / cloudformation-template-schema

Inline syntax validation, documentation links and autocompletion for your CloudFormation templates.
Apache License 2.0
141 stars 24 forks source link

Yaml schema errors on FindInMap_Inside_Sub template #56

Open oogetyboogety opened 3 years ago

oogetyboogety commented 3 years ago

The schema appears to cause the below errors on https://github.com/awslabs/aws-cloudformation-templates/blob/master/aws/services/CloudFormation/FindInMap_Inside_Sub.yaml#L89-L91:

        - {
   87               # This is where we keep the complex things we want inserted into the Fn::Sub literal block
   88               # You can even use Fn::If statements in this section
E  89               LocalFindInMapVarUsername:    !FindInMap [ EnvMap,                !Ref EnvNameParam,         UserToCreate ],     ■ unacceptable node kind for !<!FindInMap> tag; it should be "scalar", not "sequence"
E  90               LocalFindInMapVarWebserver:   !FindInMap [ EnvMap,                !Ref EnvNameParam,         WebServer ],     ■■ unacceptable node kind for !<!FindInMap> tag; it should be "scalar", not "sequence"
E  91               LocalIfVar:                   !If        [ ExampleConditionIfDev, 'This box is development', 'This box is testing' ]     ■■■ missed comma between flow collection entries
   92               }
   93 Outputs:
PatMyron commented 3 years ago

believe this may be a duplicate of https://github.com/aws-cloudformation/cloudformation-template-schema/issues/29