From 2a7a82460b33262646b39dcb0e668bcee486cdb4 Mon Sep 17 00:00:00 2001 From: Vikas Kumar Date: Fri, 12 Apr 2024 12:15:37 +1000 Subject: [PATCH] fix: added sensitive flag to the api_key output (#67) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Terraform was throwing below error related to sensitive value of api_key --- │ Error: Output refers to sensitive values │ │ on outputs.tf line 16: │ 16: output "api_key" { │ │ To reduce the risk of accidentally exporting sensitive data that was │ intended to be only internal, Terraform requires that any root module │ output containing sensitive data be explicitly marked as sensitive, to │ confirm your intent. │ │ If you do intend to export this data, annotate the output value as │ sensitive by adding the following argument: │ sensitive = true --- Co-authored-by: Vikas Kumar --- outputs.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index 1c930a7..daf8c4b 100644 --- a/outputs.tf +++ b/outputs.tf @@ -16,4 +16,5 @@ output "allowed_ip_addresses" { output "api_key" { value = data.azurerm_function_app_host_keys.function.default_function_key description = "Created Default Functions API Key" -} \ No newline at end of file + sensitive = true +}