Cfn-python-lint: Template format error: Every AllowedValues member must be a list

Created on 9 Jan 2020  路  2Comments  路  Source: aws-cloudformation/cfn-python-lint

cfn-lint 0.26.2

Checking .yaml file, block

Parameters:
  Env:
    Type: "String"
    Description: "Environment"
    Default: "staging"
    AllowedValues:
            staging
            mock
            production
            DEVOPS

Lint says no errors, but when run aws cloudformation:
An error occurred (ValidationError) when calling the CreateStack operation: Template format error: Every AllowedValues member must be a list.

enhancement good first issue

Most helpful comment

Should be an easy one to do. Thanks for submitting this.

All 2 comments

Should be an easy one to do. Thanks for submitting this.

after this PR is in.

E2001 Property Parameters/Env/AllowedValues should be of type List
test/fixtures/templates/bad/parameters/configuration.yaml:Line:Column
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sergei-Rudenkov picture Sergei-Rudenkov  路  5Comments

kddejong picture kddejong  路  5Comments

flomotlik picture flomotlik  路  3Comments

mikecee picture mikecee  路  4Comments

kddejong picture kddejong  路  3Comments