Cfn-python-lint: E3002 Invalid Property Resources/TaskDefinition/Properties/Volumes/0/efsVolumeConfiguration

Created on 4 Aug 2020  路  5Comments  路  Source: aws-cloudformation/cfn-python-lint

cfn-lint version: (cfn-lint --version)
cfn-lint 0.34.1

Description of issue.
Newly added EFS VolumeConfiguration for ECS TaskDefinitions not yet supported

Cfn support: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html

cfn-lint -u does not rectify the issue, perhaps the definitions are not yet updated upstream?

spec bug

Most helpful comment

@kddejong I figured it out. I tried the update-specs first, and it didn't work. Then updated cfn-lint, and still no dice. Had to restart Sublime and then it started working. Not sure if both were needed, but it doesn't hurt. Thanks!

All 5 comments

now available in the latest us-east-1 Resource Specification

cfn-lint -u / cfn-lint --update-specs should now pick this up and this should be included in next release

@PatMyron This appears to still be broken. I updated cfn-lint to 0.35.0 and it still does not recognize the property:

cfnlint: error 3002 - Invalid Property Resources/ConsumerTaskDefinition/Properties/Volumes/0/EFSVolumeConfiguration

@jedis00 this template is not returning an error for me. Did you also try the cfn-lint --update-specs?

Resources:
  taskdefinition: 
    Type: AWS::ECS::TaskDefinition
    Properties: 
      Volumes: 
        - EFSVolumeConfiguration:
            FilesystemId: "id"

@kddejong I figured it out. I tried the update-specs first, and it didn't work. Then updated cfn-lint, and still no dice. Had to restart Sublime and then it started working. Not sure if both were needed, but it doesn't hurt. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Satak picture Satak  路  4Comments

Sergei-Rudenkov picture Sergei-Rudenkov  路  5Comments

ow-krioles picture ow-krioles  路  5Comments

miparnisari picture miparnisari  路  3Comments

Sergei-Rudenkov picture Sergei-Rudenkov  路  4Comments