File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11locals {
2- # default to namespace for backwards compatibility
3- pre_stack_prefix = " ${ var . namespace } -${ var . env } -"
4- stack_prefix = local. pre_stack_prefix == " ${ var . namespace } --" ? " " : local. pre_stack_prefix
5-
2+ stack_prefix = var. env == " " ? " " : " ${ join (" -" , compact ([var . namespace , var . env ]))} -"
63 default_tags = {
74 env = var.env
85 namespace = var.namespace
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ resource aws_cloudformation_stack "datadog-forwarder" {
1111}
1212
1313resource aws_secretsmanager_secret "datadog_api_key" {
14- name = " ${ local . stack_prefix } datadog_api_key "
14+ name = " ${ local . stack_prefix } datadog-api-key "
1515 description = " Datadog API Key"
1616 tags = local. default_tags
1717}
You can’t perform that action at this time.
0 commit comments