Add envars to debug.

This commit is contained in:
Greyscale 2025-03-03 19:53:13 +01:00
parent 8764e63ab8
commit 779abfb7b8

View file

@ -6,7 +6,6 @@ variable "debug_path" {
locals {
debug_path = var.debug_path != null ? var.debug_path : "${path.root}/.debug/docker/services/${var.stack_name}/${var.service_name}"
}
data "json-formatter_format_json" "debug" {
json = nonsensitive(jsonencode({
name = local.service_name
@ -28,6 +27,7 @@ data "json-formatter_format_json" "debug" {
provided = var.labels,
final = local.merged_labels
}
environment_variables = var.environment_variables
}))
}
resource "local_file" "debug" {