Skip to content

Commit

Permalink
include_datadog_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrubajyoti Sadhu committed Jan 3, 2024
1 parent 7534356 commit e339455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ data "aws_secretsmanager_secret" "datadog_key" {
}

data "aws_secretsmanager_secret_version" "datadog_key" {
count = var.include_datadog_agent ? 1 : 0
secret_id = var.include_datadog_agent ? data.aws_secretsmanager_secret.datadog_key.id : null
count = var.include_datadog_agent ? 1 : 0
secret_id = var.include_datadog_agent ? data.aws_secretsmanager_secret.datadog_key[count.index].id : null
}

provider "datadog" {
Expand Down

0 comments on commit e339455

Please sign in to comment.