Skip to content

Commit 1c07595

Browse files
authored
Merge pull request #35 from SPHTech-Platform/allow-tags
Allow custom tags to be added to a specific lambda function
2 parents 586f2a1 + 3e56f74 commit 1c07595

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,6 @@ module "lambda" {
8282
logging_system_log_level = var.logging_system_log_level
8383

8484
event_source_mapping = var.event_source_mapping
85+
tags = var.tags
86+
function_tags = var.function_tags
8587
}

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,3 +445,15 @@ variable "cf_distribution_id" {
445445
type = string
446446
default = null
447447
}
448+
449+
variable "tags" {
450+
description = "A map of tags to assign to resources."
451+
type = map(string)
452+
default = {}
453+
}
454+
455+
variable "function_tags" {
456+
description = "A map of tags to assign only to the lambda function"
457+
type = map(string)
458+
default = {}
459+
}

0 commit comments

Comments
 (0)