Skip to content

Commit

Permalink
Add account tag and account_name variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ectogon committed Dec 10, 2020
1 parent 855741a commit 42989c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ resource "datadog_integration_aws" "core" {
role_name = "datadog-integration-role"

host_tags = [
"Namespace:${var.namespace}",
"env:${var.env}"
"account:${var.account_name}"
]

account_specific_namespace_rules = var.account_specific_namespace_rules
Expand Down
5 changes: 5 additions & 0 deletions vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ variable "env" {
type = string
default = ""
}
variable "account_name" {
description = "The account tag to apply to all data sent to datadog"
type = string
default = ""
}
variable "account_specific_namespace_rules" {
description = "account_specific_namespace_rules argument for datadog_integration_aws resource"
type = map
Expand Down

0 comments on commit 42989c0

Please sign in to comment.