Skip to content

Commit 9e28bf3

Browse files
NogaNHSrobg-test
andauthored
[PRM-912] Add new Lambda layer for stitching (#652)
Signed-off-by: NogaNHS <127490765+NogaNHS@users.noreply.github.com> Co-authored-by: Robert Gaskin <106234256+robg-test@users.noreply.github.com>
1 parent a9e154f commit 9e28bf3

4 files changed

Lines changed: 6 additions & 16 deletions

File tree

infrastructure/lambda-layers.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@ module "lambda-layer-reports" {
2121
module "lambda-layer-files" {
2222
source = "./modules/lambda_layers"
2323
layer_name = "files"
24-
}
24+
}
25+
26+
module "lambda-layer-stitching" {
27+
source = "./modules/lambda_layers"
28+
layer_name = "stitching"
29+
}

infrastructure/modules/lambda/locals.tf

Lines changed: 0 additions & 3 deletions
This file was deleted.

infrastructure/modules/lambda/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ resource "aws_lambda_function" "lambda" {
2525
security_group_ids = var.vpc_security_group_ids
2626
}
2727

28-
layers = local.lambda_layers
2928

3029
lifecycle {
3130
ignore_changes = [

infrastructure/modules/lambda/variable.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,6 @@ variable "persistent_workspaces" {
100100
default = ["ndr-dev", "ndr-test", "pre-prod", "prod"]
101101
}
102102

103-
variable "default_lambda_layers" {
104-
type = list(string)
105-
default = [
106-
"arn:aws:lambda:eu-west-2:282860088358:layer:AWS-AppConfig-Extension:217"
107-
]
108-
}
109-
110-
variable "extra_lambda_layers" {
111-
type = list(string)
112-
default = ["arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension:64"]
113-
}
114103

115104
variable "kms_deletion_window" {
116105
description = "Lambda KMS time to deletion in days"

0 commit comments

Comments
 (0)