AWS Fundamentals Logo
AWS Fundamentals
AWS::Lambda::LayerVersion

Lambda LayerVersion

Resource Type definition for AWS::Lambda::LayerVersion

Properties

6 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
Content
Content
RequiredCreate-onlyWrite-only
CompatibleArchitectures
Array<string>
Create-only
CompatibleRuntimes
Array<string>
Create-only
Description
string
Create-only
LayerName
string
Create-only
LicenseInfo
string
Create-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
LayerVersionArnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lambda::LayerVersion

Resources:
  MyResource:
    Type: AWS::Lambda::LayerVersion
    Properties:
      Content: "value"
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

lambda:PublishLayerVersions3:GetObjects3:GetObjectVersion

read

lambda:GetLayerVersion

delete

lambda:GetLayerVersionlambda:DeleteLayerVersion

list

lambda:ListLayerVersions

Get the Lambda Cheat Sheet

Everything you need to know about Lambda on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceLambda
Properties7
Required1
TaggingNot supported
Primary IDLayerVersionArn

Supported Operations

CreateReadDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

CompatibleRuntimesLicenseInfoCompatibleArchitecturesLayerNameDescriptionContent

External Links