Skip to content

Commit 41cb05d

Browse files
syphernlnitrocode
andauthored
add sensitive variants of outputs (#124)
Co-authored-by: nitro <[email protected]>
1 parent 8be4985 commit 41cb05d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ No resources.
202202
| json\_map\_encoded | JSON string encoded container definitions for use with other terraform resources such as aws\_ecs\_task\_definition |
203203
| json\_map\_encoded\_list | JSON string encoded list of container definitions for use with other terraform resources such as aws\_ecs\_task\_definition |
204204
| json\_map\_object | JSON map encoded container definition |
205+
| sensitive\_json\_map\_encoded | JSON string encoded container definitions for use with other terraform resources such as aws\_ecs\_task\_definition (sensitive) |
206+
| sensitive\_json\_map\_encoded\_list | JSON string encoded list of container definitions for use with other terraform resources such as aws\_ecs\_task\_definition (sensitive) |
207+
| sensitive\_json\_map\_object | JSON map encoded container definition (sensitive) |
205208
<!-- markdownlint-restore -->
206209

207210

docs/terraform.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,7 @@ No resources.
7272
| json\_map\_encoded | JSON string encoded container definitions for use with other terraform resources such as aws\_ecs\_task\_definition |
7373
| json\_map\_encoded\_list | JSON string encoded list of container definitions for use with other terraform resources such as aws\_ecs\_task\_definition |
7474
| json\_map\_object | JSON map encoded container definition |
75+
| sensitive\_json\_map\_encoded | JSON string encoded container definitions for use with other terraform resources such as aws\_ecs\_task\_definition (sensitive) |
76+
| sensitive\_json\_map\_encoded\_list | JSON string encoded list of container definitions for use with other terraform resources such as aws\_ecs\_task\_definition (sensitive) |
77+
| sensitive\_json\_map\_object | JSON map encoded container definition (sensitive) |
7578
<!-- markdownlint-restore -->

outputs.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,21 @@ output "json_map_object" {
1212
description = "JSON map encoded container definition"
1313
value = jsondecode(local.json_map)
1414
}
15+
16+
output "sensitive_json_map_encoded_list" {
17+
description = "JSON string encoded list of container definitions for use with other terraform resources such as aws_ecs_task_definition (sensitive)"
18+
value = "[${local.json_map}]"
19+
sensitive = true
20+
}
21+
22+
output "sensitive_json_map_encoded" {
23+
description = "JSON string encoded container definitions for use with other terraform resources such as aws_ecs_task_definition (sensitive)"
24+
value = local.json_map
25+
sensitive = true
26+
}
27+
28+
output "sensitive_json_map_object" {
29+
description = "JSON map encoded container definition (sensitive)"
30+
value = jsondecode(local.json_map)
31+
sensitive = true
32+
}

0 commit comments

Comments
 (0)