Skip to content

Commit 1e70131

Browse files
committed
Add support for layers
1 parent 5fbffed commit 1e70131

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module "shell_lambda" {
1414
module.assert_single_body.checked
1515
]
1616
source = "Invicton-Labs/lambda-set/aws"
17-
version = "~> 0.4.1"
17+
version = "~> 0.4.2"
1818
edge = false
1919
source_directory = "${path.module}/lambda"
2020
archive_output_directory = "${path.module}/archives/"
@@ -25,6 +25,7 @@ module "shell_lambda" {
2525
timeout = var.lambda_timeout
2626
memory_size = var.lambda_memory_size
2727
role = local.lambda_role
28+
layers = var.lambda_layer_arns
2829
tags = {
2930
"ModuleAuthor" = "InvictonLabs"
3031
"ModuleUrl" = "https://registry.terraform.io/modules/Invicton-Labs/lambda-shell/aws"

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ variable "lambda_vpc_config" {
6060
default = null
6161
}
6262

63+
variable "lambda_layer_arns" {
64+
description = "A list of Lambda Layer ARNs to attach to the Lambda."
65+
type = list(string)
66+
default = []
67+
}
68+
6369
data "aws_caller_identity" "current" {}
6470

6571
data "aws_arn" "role" {

0 commit comments

Comments
 (0)