diff --git a/main.tf b/main.tf index a97cce1..858a17f 100644 --- a/main.tf +++ b/main.tf @@ -88,7 +88,7 @@ module "secret" { for_each = var.secrets project_id = local.project_id name = each.key - data = each.value.data + data = sensitive(each.value.data) format = each.value.format # Issue with provider, service_access is not supported at the moment. https://github.com/IBM-Cloud/terraform-provider-ibm/issues/5232 # service_access = each.value.service_access diff --git a/modules/secret/variables.tf b/modules/secret/variables.tf index 42026a0..0e3494d 100644 --- a/modules/secret/variables.tf +++ b/modules/secret/variables.tf @@ -19,6 +19,7 @@ variable "format" { variable "data" { description = "Data container that allows to specify config parameters and their values as a key-value map." type = map(string) + sensitive = true default = {} }