aws::lambda-layer

Creates a lambda layer.

Example

aws::lambda-layer lambda-layer-example
    name: "lambda-layer-example"
    description: "lambda-layer-example-desc"
    content-zip-path: "example-function.zip"
    compatible-runtimes: [
        "nodejs8.10"
    ]
end

Attributes

Attribute Description
name The name of the Lambda Layer. (Required)
description The description of the Lambda Layer.
license-info The software license for the Lambda Layer.
compatible-runtimes The list of runtime language for the function using this Lambda Layer. Valid values are nodejs or nodejs4.3 or nodejs6.10 or nodejs8.10 or java8 or python2.7 or python3.6 or python3.7 or dotnetcore1.0 or dotnetcore2.0 or dotnetcore2.1 or nodejs4.3-edge or go1.x or ruby2.5 or provided. (Required)
s3-bucket The S3 Bucket name where the code for the function using this Lambda Layer resides. Required if field ‘content-zip-path’ not set.
s3-key The S3 object key where the code for the function using this Lambda Layer resides. Required if field ‘content-zip-path’ not set.
s3-object-version The S3 object version where the code for the function using this Lambda Layer resides. Required if field ‘content-zip-path’ not set.
content-zip-path The zip file location where the code for the function using this Lambda Layer resides. Required if fields ‘s3-bucket’, ‘s3-key’ and ‘s3-object-version’ not set.

Outputs

Attribute Description
arn The ARN of the Lambda Layer.
version-arn The ARN of the Lambda Layer version specific.
version The version of the Lambda Layer.
created-date The date that the Lambda Layer version was created.