@@ -20,7 +20,33 @@ locals {
2020 # Get the context tags and skip tags that we don't want applied to every resource.
2121 # i.e. we don't want name since each metric would be called something other than this component's name.
2222 # i.e. we don't want environment since each metric would come from gbl or a region and this component is deployed in gbl.
23- context_tags = [for k , v in module . this . tags : " ${ lower (k)} :${ v } " if contains (var. context_host_and_filter_tags , lower (k))]
24- filter_tags = distinct (concat (var. filter_tags , local. context_tags ))
25- host_tags = distinct (concat (var. host_tags , local. context_tags ))
23+ context_tags = [
24+ for k , v in module . this . tags : " ${ lower (k)} :${ v } " if contains (var. context_host_and_filter_tags , lower (k))
25+ ]
26+ filter_tags = distinct (concat (var. filter_tags , local. context_tags ))
27+ host_tags = distinct (concat (var. host_tags , local. context_tags ))
28+ }
29+
30+ module "store_write" {
31+ count = local. enabled ? 1 : 0
32+ source = " cloudposse/ssm-parameter-store/aws"
33+ version = " 0.9.1"
34+ parameter_write = [
35+ {
36+ name = " /datadog/datadog_external_id"
37+ value = join (" " , module. datadog_integration [* ]. datadog_external_id )
38+ type = " String"
39+ overwrite = " true"
40+ description = " External identifier for our dd integration"
41+ },
42+ {
43+ name = " /datadog/aws_role_name"
44+ value = join (" " , module. datadog_integration [* ]. aws_role_name )
45+ type = " String"
46+ overwrite = " true"
47+ description = " Name of the AWS IAM role used by our dd integration"
48+ }
49+ ]
50+
51+ context = module. this . context
2652}
0 commit comments