Cfn-python-lint: Invalid or Unsupported Type AWS::Lambda::LayerVersion

Created on 3 Jan 2019  路  3Comments  路  Source: aws-cloudformation/cfn-python-lint

cfn-lint version: 0.10.2

E3001 Invalid or unsupported Type AWS::Lambda::LayerVersion for resource

This template yields a E3001 error:

---
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31

Resources:
  FunctionDependencyLayer:
    Type: AWS::Serverless::LayerVersion
    Properties:
      ContentUri:
        Bucket: not-a-real-bucket
        Key: not-a-real-key
      CompatibleRuntimes:
        - python3.6

For now I can workaround by ignoring E3001 but due to the lack of line level ignores this workaround is less than ideal. Linting will no longer detect any invalid resource type with this workaround in place.

Thanks!

spec bug

All 3 comments

Ugh. Looks like AWS::Lambda::LayerVersionPermission and AWS::Lambda::LayerVersionPermission were never published to the spec. Sigh. Let me see if I can get those published quickly.
If not, we can try to get a patch in until everyone gets back from vacation.

Thanks for the quick attention to this @cmmeyer!

Released with v0.11.0

Was this page helpful?
0 / 5 - 0 ratings