Skip to content

Commit 1ecdb22

Browse files
Artem Kajalainenhouqp
authored andcommitted
feat(CF): use datadog supplied CF stack template
1 parent 606b750 commit 1ecdb22

File tree

3 files changed

+7
-629
lines changed

3 files changed

+7
-629
lines changed

logs_monitoring.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
data local_file "dd_forwarder_cf_template" {
2-
filename = "${path.module}/logs_monitoring_template.yaml"
3-
}
4-
51
resource aws_cloudformation_stack "datadog-forwarder" {
62
name = "${local.stack_prefix}datadog-forwarder"
73
capabilities = ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"]
@@ -11,9 +7,7 @@ resource aws_cloudformation_stack "datadog-forwarder" {
117
ExcludeAtMatch = var.log_exclude_at_match
128
FunctionName = "${local.stack_prefix}datadog-forwarder"
139
}
14-
#template_url = "https://datadog-cloudformation-template.s3.amazonaws.com/aws/forwarder/3.6.0.yaml"
15-
template_body = data.local_file.dd_forwarder_cf_template.content
16-
10+
template_url = "https://datadog-cloudformation-template.s3.amazonaws.com/aws/forwarder/${var.dd_forwarer_template_version}.yaml"
1711
}
1812

1913
resource aws_secretsmanager_secret "datadog_api_key" {

0 commit comments

Comments
 (0)