Skip to content

Commit

Permalink
update lambda module
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Apr 3, 2024
1 parent 466cd7c commit 172f6e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {

module "lambda" {
source = "armorfret/lambda/aws"
version = "0.5.0"
version = "0.5.1"

source_bucket = var.source_bucket
source_version = var.source_version
Expand All @@ -22,6 +22,8 @@ module "lambda" {
source_arns = ["${aws_api_gateway_rest_api.this.execution_arn}/*"]

cloudwatch_retention_in_days = var.cloudwatch_retention_in_days

kms_key_arn = var.kms_key_arn
}

module "certificate" {
Expand Down Expand Up @@ -181,7 +183,7 @@ resource "aws_api_gateway_authorizer" "this" {

module "auth_lambda" {
source = "armorfret/lambda/aws"
version = "0.5.0"
version = "0.5.1"
count = var.auth_source_bucket == "" ? 0 : 1

source_bucket = var.auth_source_bucket
Expand All @@ -195,4 +197,6 @@ module "auth_lambda" {
source_arns = ["${aws_api_gateway_rest_api.this.execution_arn}/*"]

cloudwatch_retention_in_days = var.cloudwatch_retention_in_days

kms_key_arn = var.kms_key_arn
}

0 comments on commit 172f6e9

Please sign in to comment.