From 3e56f748fd6cb36ff5fa69963cda299183a33ba0 Mon Sep 17 00:00:00 2001 From: Jazeel Date: Thu, 12 Sep 2024 14:05:58 +0800 Subject: [PATCH] Allow custom tags to be added to a specific lambda function --- main.tf | 2 ++ variables.tf | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/main.tf b/main.tf index 0f95bb9..c8ddd97 100644 --- a/main.tf +++ b/main.tf @@ -82,4 +82,6 @@ module "lambda" { logging_system_log_level = var.logging_system_log_level event_source_mapping = var.event_source_mapping + tags = var.tags + function_tags = var.function_tags } diff --git a/variables.tf b/variables.tf index 281411b..1f2ed5f 100644 --- a/variables.tf +++ b/variables.tf @@ -445,3 +445,15 @@ variable "cf_distribution_id" { type = string default = null } + +variable "tags" { + description = "A map of tags to assign to resources." + type = map(string) + default = {} +} + +variable "function_tags" { + description = "A map of tags to assign only to the lambda function" + type = map(string) + default = {} +}