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 set The list of runtime language for the function using this Lambda Layer. Valid values are nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5 and 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.