Skip to content

Commit 0a56b65

Browse files
Artem Kajalainenhouqp
authored andcommitted
fix datadog-forwarder CF stack params and ignore DdApiKey param
1 parent c6c7ddd commit 0a56b65

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

logs_monitoring.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ resource aws_cloudformation_stack "datadog-forwarder" {
22
name = "${local.stack_prefix}datadog-forwarder"
33
capabilities = ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"]
44
parameters = {
5-
DdApiKeySecret = aws_secretsmanager_secret.datadog_api_key.arn
6-
DdApiKey = "dummy-value"
7-
DdTags = "namespace:${var.namespace},env:${var.env}"
8-
ExcludeAtMatch = var.log_exclude_at_match
9-
FunctionName = "${local.stack_prefix}datadog-forwarder"
5+
DdApiKeySecretArn = aws_secretsmanager_secret.datadog_api_key.arn
6+
DdApiKey = "dummy-value"
7+
DdTags = "namespace:${var.namespace},env:${var.env}"
8+
ExcludeAtMatch = var.log_exclude_at_match
9+
FunctionName = "${local.stack_prefix}datadog-forwarder"
1010
}
1111
template_url = "https://datadog-cloudformation-template.s3.amazonaws.com/aws/forwarder/${var.dd_forwarer_template_version}.yaml"
12+
13+
lifecycle {
14+
ignore_changes = [
15+
parameters["DdApiKey"]
16+
]
17+
}
1218
}
1319

1420
resource aws_secretsmanager_secret "datadog_api_key" {

0 commit comments

Comments
 (0)