Skip to content

Commit

Permalink
fix: added sensitive flag to the api_key output (#67)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vikas027 and Vikas Kumar authored Apr 12, 2024
1 parent ffd62d9 commit 2a7a824
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
sensitive = true
}

0 comments on commit 2a7a824

Please sign in to comment.