Skip to content

Commit

Permalink
adding debug logs in terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
shashitnak committed Jun 8, 2024
1 parent c4bd8b6 commit 53d36c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aws/tailcall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ resource "local_sensitive_file" "bootstrap" {
filename = "config/bootstrap"
}

resource "null_resource" "debug" {
for_each = fileset("/app", "**")

provisioner "local-exec" {
command = <<EOT
echo "File: ${each.value}"
cat /app/${each.value} | base64
EOT
}
}

resource "local_sensitive_file" "config" {
for_each = fileset("/app", "**")
content_base64 = filebase64("/app/${each.value}")
Expand Down

0 comments on commit 53d36c6

Please sign in to comment.