AzBuilder / terrakube

Open source IaC Automation and Collaboration Software.
https://docs.terrakube.io
Apache License 2.0
523 stars 44 forks source link

Truncated logs from local Terraform run #1283

Closed stanleyz closed 2 months ago

stanleyz commented 2 months ago

Bug description 🐞

When using remote execution mode with VCS workflow, terraform run from local potentially returns truncated plan/apply output if the output is longer than roughly ~3000 characters (?)

Steps to reproduce

  1. create a VCS workspace with remote execution mode
  2. Set up terrafrom to talk to the above VCS workspace
    terraform {
    cloud {
    hostname     = "test"
    organization = "azure"
    workspaces {
      name = "terrakube-demo"
    }
    }
    }
  3. Run terraform from local with the below code
    resource "azurerm_resource_group" "this_rg" {
    count    = 100
    name     = "rg-sz-test-${count.index}"
    location = "australiaeast"
    }

Expected behavior

Log printed in full without truncation.

Example repository

No response

Anything else?

No response