Skip to content

Commit 560c0a4

Browse files
committed
feat: concat the global_parameter_path_prefix infront of all secret env vars
1 parent 253b5bc commit 560c0a4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ locals {
2424
secret_environment_variables = flatten([
2525
for name, valueFrom in var.secret_environment_variables : {
2626
name = name
27-
valueFrom = valueFrom
27+
valueFrom = "${var.global_parameter_path_prefix}${valueFrom}"
2828
}
2929
])
3030
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ variable "command" {
1313
default = ""
1414
}
1515

16+
variable "global_parameter_path_prefix" {
17+
description = "Path prefix for global parameter"
18+
type = string
19+
default = ""
20+
}
21+
1622
variable "image" {
1723
description = "ECR image"
1824
type = string

0 commit comments

Comments
 (0)