Loading...
Loading...
### Terraform Version ```shell Terraform v1.13.3 on darwin_arm64 + provider registry.terraform.io/hashicorp/aws v6.15.0 + provider registry.terraform.io/hashicorp/random v3.7.2 ``` ### Terraform Configuration Files ```terraform ...terraform config... ``` ### Debug Output ``` Run terraform show -json ./downloaded-tfplan/tfplan > tfplan.json terraform show -json ./downloaded-tfplan/tfplan > tfplan.json shell: /usr/bin/bash -e {0} env: TERRAFORM_CLI_PATH: /home/runner/work/_temp/3813ca63-0ba4-4188-aece-cf4286b59396 !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! Terraform crashed! This is always indicative of a bug within Terraform. Please report the crash with Terraform[1] so that we can fix this. When reporting bugs, please include your terraform version, the stack trace shown below, and any additional information which may help replicate the issue. [1]: https://github.com/hashicorp/terraform/issues !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! panic: runtime error: invalid memory address or nil pointer dereference goroutine 1 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/hashicorp/terraform/internal/logging.PanicHandler() github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x16a panic({0x36a0fa0?, 0x6308e10?}) runtime/panic.go:792 +0x132 github.com/hashicorp/terraform/internal/cloud.(*Cloud).AppName(...) github.com/hashicorp/terraform/internal/cloud/backend.go:440 github.com/hashicorp/terraform/internal/command.(*ShowCommand).getDataFromCloudPlan(0x7ffcd175fd1a?, 0xc000914db0, 0x0) github.com/hashicorp/terraform/internal/command/show.go:288 +0x155 github.com/hashicorp/terraform/internal/command.(*ShowCommand).getPlanFromPath(0xc000133880, {0x7ffcd175fd1a?, 0xc0002e7008?}) github.com/hashicorp/terraform/internal/command/show.go:273 +0x75 github.com/hashicorp/terraform/internal/command.(*ShowCommand).showFromPath(0x2?, {0x7ffcd175fd1a, 0x1a}) github.com/hashicorp/terraform/internal/command/show.go:189 +0x32 github.com/hashicorp/terraform/internal/command.(*ShowCommand).show(0xc000133880, {0x7ffcd175fd1a?, 0x2?}) github.com/hashicorp/terraform/internal/command/show.go:132 +0x1a7 github.com/hashicorp/terraform/internal/command.(*ShowCommand).Run(0xc000133880, {0xc00012e0e0, 0x2, 0x2}) github.com/hashicorp/terraform/internal/command/show.go:78 +0x3e5 github.com/hashicorp/cli.(*CLI).Run(0xc0008cef00) github.com/hashicorp/cli@v1.1.7/cli.go:265 +0x4de main.realMain() github.com/hashicorp/terraform/main.go:339 +0x1deb main.main() github.com/hashicorp/terraform/main.go:64 +0x13 ``` ### Expected Behavior generate tfplan.json ### Actual Behavior ``` Run terraform show -json ./downloaded-tfplan/tfplan > tfplan.json terraform show -json ./downloaded-tfplan/tfplan > tfplan.json shell: /usr/bin/bash -e {0} env: TERRAFORM_CLI_PATH: /home/runner/work/_temp/3813ca63-0ba4-4188-aece-cf4286b59396 !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! Terraform crashed! This is always indicative of a bug within Terraform. Please report the crash with Terraform[1] so that we can fix this. When reporting bugs, please include your terraform version, the stack trace shown below, and any additional information which may help replicate the issue. [1]: https://github.com/hashicorp/terraform/issues !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! panic: runtime error: invalid memory address or nil pointer dereference goroutine 1 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/hashicorp/terraform/internal/logging.PanicHandler() github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x16a panic({0x36a0fa0?, 0x6308e10?}) runtime/panic.go:792 +0x132 github.com/hashicorp/terraform/internal/cloud.(*Cloud).AppName(...) github.com/hashicorp/terraform/internal/cloud/backend.go:440 github.com/hashicorp/terraform/internal/command.(*ShowCommand).getDataFromCloudPlan(0x7ffcd175fd1a?, 0xc000914db0, 0x0) github.com/hashicorp/terraform/internal/command/show.go:288 +0x155 github.com/hashicorp/terraform/internal/command.(*ShowCommand).getPlanFromPath(0xc000133880, {0x7ffcd175fd1a?, 0xc0002e7008?}) github.com/hashicorp/terraform/internal/command/show.go:273 +0x75 github.com/hashicorp/terraform/internal/command.(*ShowCommand).showFromPath(0x2?, {0x7ffcd175fd1a, 0x1a}) github.com/hashicorp/terraform/internal/command/show.go:189 +0x32 github.com/hashicorp/terraform/internal/command.(*ShowCommand).show(0xc000133880, {0x7ffcd175fd1a?, 0x2?}) github.com/hashicorp/terraform/internal/command/show.go:132 +0x1a7 github.com/hashicorp/terraform/internal/command.(*ShowCommand).Run(0xc000133880, {0xc00012e0e0, 0x2, 0x2}) github.com/hashicorp/terraform/internal/command/show.go:78 +0x3e5 github.com/hashicorp/cli.(*CLI).Run(0xc0008cef00) github.com/hashicorp/cli@v1.1.7/cli.go:265 +0x4de main.realMain() github.com/hashicorp/terraform/main.go:339 +0x1deb main.main() github.com/hashicorp/terraform/main.go:64 +0x13 ``` ### Steps to Reproduce tf-summarize: runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' needs: [tf-plan] steps: - name: Download tfplan uses: actions/download-artifact@v5 with: name: tfplan path: ./downloaded-tfplan - uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.13.3 cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - name: Terraform init id: init run: terraform init -input=false -backend=false - name: Terraform show id: show run: | terraform show -json ./downloaded-tfplan/tfplan > tfplan.json ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.