Skip to content

Commit

Permalink
added nr_tags variable
Browse files Browse the repository at this point in the history
This variable allows configuring NR_TAGS during deployment
  • Loading branch information
FouadMerhi committed Feb 9, 2022
1 parent de1f7c9 commit 4eef147
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ variable "nr_infra_logging" {
default = true
}

variable "nr_tags" {
type = string
description = "Additional tags added to the logs"
sensitive = false
}

variable "lambda_archive" {
type = string
description = "The path to the lambda archive, the lambda will be build here if the build_lambda variable is true."
Expand Down Expand Up @@ -187,6 +193,7 @@ resource "aws_lambda_function" "ingestion_function" {
LICENSE_KEY = var.nr_license_key
LOGGING_ENABLED = var.nr_logging_enabled ? "True" : "False"
INFRA_ENABLED = var.nr_infra_logging ? "True" : "False"
NR_TAGS = var.nr_tags
}
}

Expand Down

0 comments on commit 4eef147

Please sign in to comment.