Skip to content

Commit 8e4597d

Browse files
committed
adding LOGLEVEL to env vars
1 parent e2d896a commit 8e4597d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ resource "aws_lambda_function" "this" {
7474
variables = {
7575
ASG_NAME = var.asg_name
7676
AWS_REGION = local.region
77+
LOGLEVEL = var.loglevel
7778
}
7879
}
7980
lifecycle {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ locals {
77
region = data.aws_region.current.name
88
}
99

10+
variable "loglevel" {
11+
type = string
12+
default = "INFO"
13+
description = "Logging level for the rolling restart lambda function."
14+
}
15+
1016
variable "name" {
1117
type = string
1218
default = "rolling-restart-lambda"

0 commit comments

Comments
 (0)