Skip to content

Commit

Permalink
docs: add descriptions to outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas committed Jun 28, 2023
1 parent 51e94de commit 35d92f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
7 changes: 4 additions & 3 deletions aks/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
output "id" {
description = "ID to pass other modules in order to refer to this module as a dependency. It takes the ID that comes from the main module and passes it along to the code that called this variant in the first place."
description = "ID to pass other modules in order to refer to this module as a dependency."
value = module.loki-stack.id
}

output "loki_credentials" {
value = module.loki-stack.loki_credentials
sensitive = true
description = "Credentials to access the Loki ingress, if activated."
value = module.loki-stack.loki_credentials
sensitive = true
}
7 changes: 4 additions & 3 deletions eks/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
output "id" {
description = "ID to pass other modules in order to refer to this module as a dependency. It takes the ID that comes from the main module and passes it along to the code that called this variant in the first place."
description = "ID to pass other modules in order to refer to this module as a dependency."
value = module.loki-stack.id
}

output "loki_credentials" {
value = module.loki-stack.loki_credentials
sensitive = true
description = "Credentials to access the Loki ingress, if activated."
value = module.loki-stack.loki_credentials
sensitive = true
}
8 changes: 5 additions & 3 deletions kind/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
output "id" {
value = module.loki-stack.id
description = "ID to pass other modules in order to refer to this module as a dependency."
value = module.loki-stack.id
}

output "loki_credentials" {
value = module.loki-stack.loki_credentials
sensitive = true
description = "Credentials to access the Loki ingress, if activated."
value = module.loki-stack.loki_credentials
sensitive = true
}
1 change: 1 addition & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ output "id" {
}

output "loki_credentials" {
description = "Credentials to access the Loki ingress, if activated."
value = var.ingress != null ? {
username = "loki"
password = random_password.loki_password.0.result
Expand Down

0 comments on commit 35d92f4

Please sign in to comment.