Skip to content

Commit c93ba2d

Browse files
committed
[PRM-917] Remove default_lambda_layers variable and update lifecycle ignore_changes for layers
Signed-off-by: NogaNHS <127490765+NogaNHS@users.noreply.github.com>
1 parent 9e7db23 commit c93ba2d

4 files changed

Lines changed: 1 addition & 16 deletions

File tree

infrastructure/lambda-data-collection.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ module "data-collection-lambda" {
7878
}
7979
is_gateway_integration_needed = false
8080
is_invoked_from_gateway = false
81-
default_lambda_layers = []
8281

8382
depends_on = [
8483
module.ndr-app-config,

infrastructure/modules/lambda/locals.tf

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

infrastructure/modules/lambda/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ 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 = [
3231
# These are required as Lambdas are deployed via the CI/CD pipelines
3332
source_code_hash,
33+
layers
3434
]
3535
}
3636

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:238"
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)