Skip to content

Commit 498b01b

Browse files
authored
Merge pull request #7 from moreiramarti/tag-lambda-scheduler-stop-start
add tags to lambda
2 parents 6300813 + ead7ded commit 498b01b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ resource "aws_lambda_function" "this" {
247247
CLOUDWATCH_ALARM_SCHEDULE = var.cloudwatch_alarm_schedule
248248
}
249249
}
250+
251+
tags = var.tags
250252
}
251253

252254
################################################

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,9 @@ variable "cloudwatch_alarm_schedule" {
7777
type = string
7878
default = "false"
7979
}
80+
81+
variable "tags" {
82+
description = "Custom tags on lambda"
83+
type = map
84+
default = null
85+
}

0 commit comments

Comments
 (0)