Skip to content

Commit 65e9f4b

Browse files
Merge pull request #8 from hsb0818/master
Add support for lambda layers
2 parents 3bbd868 + 6582907 commit 65e9f4b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resource aws_lambda_function this {
1111
timeout = var.lambda_timeout
1212
tags = var.tags
1313
source_code_hash = var.source_code_hash
14+
layers = var.layers
1415

1516
dynamic "vpc_config" {
1617
for_each = var.vpc_config == null ? [] : [var.vpc_config]

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,9 @@ variable "source_code_hash" {
9494
description = "Used to trigger updates when file contents change. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key."
9595
type = string
9696
}
97+
98+
variable "layers" {
99+
default = null
100+
description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function"
101+
type = list(string)
102+
}

0 commit comments

Comments
 (0)