Loading...
Loading...
### Terraform Version ```shell Terraform v1.9.8 on linux_amd64 + provider registry.terraform.io/hashicorp/kubernetes v2.21.1 + provider registry.terraform.io/hashicorp/null v3.2.3 ``` ### Terraform Configuration Files ```terraform terraform { required_providers { kubernetes = { source = "hashicorp/kubernetes" version = "~> 2.21.1" } } } provider "kubernetes" { config_path = "~/.kube/config" } terraform { backend "kubernetes" { } } resource "null_resource" "example" { provisioner "local-exec" { command = "echo 'foobar'" } } ``` ### Debug Output https://gist.github.com/tschneider-aneo/111f80d3f6566277d489b3078957277e ### Expected Behavior My backend secret suffix gets correctly created as "foo-3" ### Actual Behavior Terraform somehow considers the "-[1-9]" ending as an index for an object of length 1, resulting in an index out of range Terraform crash ### Steps to Reproduce terraform init -upgrade -reconfigure -backend-config="secret_suffix=foo-2" ### Additional Context _No response_ ### References _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.