Loading...
Loading...
### Terraform Version ```shell Terraform v1.15.3 on linux_amd64 ``` ### Terraform Configuration Files ```terraform provider "google" { project = var.project_id region = var.region credentials = file(var.credentials_file_path) } module "01_vpc" { source = "../../../modules/01_vpc" project_id = "static-web-gcs" region = "asia-south1" credentials_file_path = "../credentials/static-sites-on-gcs-1234c4c11234.json" # Path to the GCP credentials file apis_to_be_enabled = ["compute.googleapis.com", "logging.googleapis.com", "secretmanager.googleapis.com"] main_vpc_name = "main-vpc" firewall_name = "main-vpc-firewall" allowed_protocols = "tcp" allowed_ports = ["80"] direction = "INGRESS" source_ranges = ["0.0.0.0/0"] target_tags = ["www-node"] } ``` ### Debug Output ``` !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! panic: runtime error: invalid memory address or nil pointer dereference goroutine 40 [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({0x3dfce40?, 0x73139d0?}) runtime/panic.go:783 +0x132 github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1.1() github.com/hashicorp/terraform/internal/terraform/graph.go:59 +0x4e5 panic({0x3dfce40?, 0x73139d0?}) runtime/panic.go:783 +0x132 github.com/hashicorp/terraform/internal/checks.collectInitialStatuses({0x4dfb980?}, 0xc000781900) github.com/hashicorp/terraform/internal/checks/state_init.go:28 +0x31 github.com/hashicorp/terraform/internal/checks.(*State).RegisterModule(0xc000778600, 0xc000781900) github.com/hashicorp/terraform/internal/checks/state.go:102 +0xa8 github.com/hashicorp/terraform/internal/terraform.(*nodeInstallModule).Execute(0xc0002ef040, {0x4e4bae0, 0xc00065f9e0}, 0x58?) github.com/hashicorp/terraform/internal/terraform/node_module_install.go:131 +0xc05 github.com/hashicorp/terraform/internal/terraform.(*ContextGraphWalker).Execute(0xc00074c420, {0x4e4bae0, 0xc00065f9e0}, {0x7dc2686794a8, 0xc0002ef040}) github.com/hashicorp/terraform/internal/terraform/graph_walk_context.go:170 +0xaf github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1({0x414f3a0, 0xc0002ef040}) github.com/hashicorp/terraform/internal/terraform/graph.go:143 +0x755 github.com/hashicorp/terraform/internal/dag.(*Walker).walkVertex(0xc00076ac00, {0x414f3a0, 0xc0002ef040}, 0xc000770280) github.com/hashicorp/terraform/internal/dag/walk.go:393 +0x2d1 created by github.com/hashicorp/terraform/internal/dag.(*Walker).Update in goroutine 1 github.com/hashicorp/terraform/internal/dag/walk.go:316 +0xf13 ``` ### Expected Behavior terraform init command should have shown crash message ### Actual Behavior terraform crashed ### Steps to Reproduce 1.`terraform init` ### Additional Context None ### References No ### 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.