Skip to content

Commit

Permalink
Add support for layers
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKotowick committed Feb 7, 2022
1 parent 5fbffed commit 1e70131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module "shell_lambda" {
module.assert_single_body.checked
]
source = "Invicton-Labs/lambda-set/aws"
version = "~> 0.4.1"
version = "~> 0.4.2"
edge = false
source_directory = "${path.module}/lambda"
archive_output_directory = "${path.module}/archives/"
Expand All @@ -25,6 +25,7 @@ module "shell_lambda" {
timeout = var.lambda_timeout
memory_size = var.lambda_memory_size
role = local.lambda_role
layers = var.lambda_layer_arns
tags = {
"ModuleAuthor" = "InvictonLabs"
"ModuleUrl" = "https://registry.terraform.io/modules/Invicton-Labs/lambda-shell/aws"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ variable "lambda_vpc_config" {
default = null
}

variable "lambda_layer_arns" {
description = "A list of Lambda Layer ARNs to attach to the Lambda."
type = list(string)
default = []
}

data "aws_caller_identity" "current" {}

data "aws_arn" "role" {
Expand Down

0 comments on commit 1e70131

Please sign in to comment.