Loading...
Loading...
### Terraform Version ```shell tf --version Terraform v1.14.0-beta2 on darwin_arm64 + provider registry.terraform.io/hashicorp/aws v5.100.0 + provider registry.terraform.io/hashicorp/random v3.7.2 ``` ### Terraform Configuration Files The command can be run using any Stacks configuration which has a Stack created in HCP Terraform. ### Debug Output ``` TF_LOG=TRACE tf stacks configuration list -stack-id st-31HY1439bDRVawex -speculative true 2025-10-02T10:06:57.533-0400 [INFO] Terraform version: 1.14.0 beta2 2025-10-02T10:06:57.533-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.91.0 2025-10-02T10:06:57.533-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.24.0 2025-10-02T10:06:57.533-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1 2025-10-02T10:06:57.533-0400 [DEBUG] using github.com/zclconf/go-cty v1.16.3 2025-10-02T10:06:57.533-0400 [INFO] Go runtime version: go1.25.1 2025-10-02T10:06:57.533-0400 [INFO] CLI args: []string{"/opt/homebrew/Cellar/tfenv/3.0.0/versions/1.14.0-beta2/terraform", "stacks", "configuration", "list", "-stack-id", "st-31HY1439bDRVawex", "-speculative", "true"} 2025-10-02T10:06:57.534-0400 [TRACE] Stdout is a terminal of width 115 2025-10-02T10:06:57.534-0400 [TRACE] Stderr is a terminal of width 115 2025-10-02T10:06:57.534-0400 [TRACE] Stdin is a terminal 2025-10-02T10:06:57.534-0400 [DEBUG] Attempting to open CLI config file: /Users/manuchn/.terraformrc 2025-10-02T10:06:57.534-0400 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2025-10-02T10:06:57.534-0400 [INFO] Loading CLI configuration from /Users/manuchn/.terraform.d/credentials.tfrc.json 2025-10-02T10:06:57.534-0400 [DEBUG] checking for credentials in "/Users/manuchn/.terraform.d/plugins" 2025-10-02T10:06:57.535-0400 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins 2025-10-02T10:06:57.535-0400 [DEBUG] will search for provider plugins in /Users/manuchn/.terraform.d/plugins 2025-10-02T10:06:57.535-0400 [DEBUG] ignoring non-existing provider search directory /Users/manuchn/Library/Application Support/io.terraform/plugins 2025-10-02T10:06:57.535-0400 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins 2025-10-02T10:06:57.535-0400 [INFO] CLI command args: []string{"stacks", "configuration", "list", "-stack-id", "st-31HY1439bDRVawex", "-speculative", "true"} 2025-10-02T10:06:57.535-0400 [TRACE] stacksplugin hostname not set, falling back to "app.terraform.io" 2025-10-02T10:06:57.535-0400 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json 2025-10-02T10:06:57.745-0400 [TRACE] No stacksplugin cache path store at '.terraform/.stackspluginpath`, using default '/Users/manuchn/.terraform.d/stacksplugin' 2025-10-02T10:06:57.745-0400 [TRACE] stacksplugin cache directory found at "/Users/manuchn/.terraform.d/stacksplugin" 2025-10-02T10:06:57.747-0400 [TRACE] stacksplugin manifest cache found for host "app.terraform.io" 2025-10-02T10:06:57.747-0400 [DEBUG] performing request: method=GET url=https://app.terraform.io/stacksplugin.v1/manifest.json 2025-10-02T10:06:57.747-0400 [TRACE] HTTP client GET request to https://app.terraform.io/stacksplugin.v1/manifest.json 2025-10-02T10:06:58.006-0400 [TRACE] wrote stacksplugin manifest cache to "/Users/manuchn/.terraform.d/stacksplugin/app.terraform.io/manifest.json" 2025-10-02T10:06:58.006-0400 [TRACE] checking for stacksplugin archive for darwin_arm64. Supported architectures: [darwin_amd64 darwin_arm64 freebsd_386 freebsd_amd64 freebsd_amd linux_386 linux_amd64 linux_arm linux_arm64 netbsd_386 netbsd_amd64 netbsd_arm openbsd_386 openbsd_amd64 openbsd_arm solaris_amd64 windows_386 windows_amd64] 2025-10-02T10:06:58.007-0400 [TRACE] plugin "1.1.0" binary located at "/Users/manuchn/.terraform.d/stacksplugin/bin/darwin_arm64/tfstacks" (resolved from cache) 2025-10-02T10:06:58.007-0400 [DEBUG] created stacks logger: level=trace 2025-10-02T10:06:58.008-0400 [DEBUG] stacks: starting plugin: path=/Users/manuchn/.terraform.d/stacksplugin/bin/darwin_arm64/tfstacks args=["/Users/manuchn/.terraform.d/stacksplugin/bin/darwin_arm64/tfstacks"] 2025-10-02T10:06:58.011-0400 [DEBUG] stacks: plugin started: path=/Users/manuchn/.terraform.d/stacksplugin/bin/darwin_arm64/tfstacks pid=87663 2025-10-02T10:06:58.011-0400 [DEBUG] stacks: waiting for RPC address: plugin=/Users/manuchn/.terraform.d/stacksplugin/bin/darwin_arm64/tfstacks 2025-10-02T10:06:58.025-0400 [DEBUG] stacks: using plugin: version=1 2025-10-02T10:06:58.025-0400 [DEBUG] stacks.tfstacks: plugin address: address=/var/folders/xb/b1nrh4n54pv07flx5flrf1l40000gq/T/plugin3232583562 network=unix timestamp=2025-10-02T10:06:58.024-0400 2025-10-02T10:06:58.026-0400 [TRACE] stacks.stdio: waiting for stdio data 2025-10-02T10:06:58.028-0400 [TRACE] stacks.tfstacks: Plugin Execute with args [configuration list -stack-id st-31HY1439bDRVawex -speculative true]: timestamp=2025-10-02T10:06:58.028-0400 2025-10-02T10:06:58.334-0400 [TRACE] stacks.tfstacks: sending command response to stderr: "invalid arguments: flag provided but not defined: -speculative\n": timestamp=2025-10-02T10:06:58.334-0400 2025-10-02T10:06:58.334-0400 [TRACE] stacks.tfstacks: sending command response to stderr: "\n": timestamp=2025-10-02T10:06:58.334-0400 2025-10-02T10:06:58.334-0400 [TRACE] stacks.tfstacks: Plugin Execute sending ExitCode 1: timestamp=2025-10-02T10:06:58.334-0400 2025-10-02T10:06:58.334-0400 [INFO] stacks.tfstacks: Context cancelled, initiating graceful shutdown: timestamp=2025-10-02T10:06:58.334-0400 invalid arguments: flag provided but not defined: -speculative 2025-10-02T10:06:58.335-0400 [TRACE] received exit code: 1 2025-10-02T10:06:58.337-0400 [DEBUG] stacks.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" 2025-10-02T10:06:58.340-0400 [INFO] stacks: plugin process exited: plugin=/Users/manuchn/.terraform.d/stacksplugin/bin/darwin_arm64/tfstacks id=87663 2025-10-02T10:06:58.340-0400 [DEBUG] stacks: plugin exited ``` ### Expected Behavior The configuration should be uploaded with no deployments triggered based on the documentation. ### Actual Behavior The command fails on all the below permutations ``` ``` ❯ tf stacks configuration list -stack-id st-31HY1439bDRVawex -speculative=true invalid arguments: flag provided but not defined: -speculative ❯ tf stacks configuration list -stack-id st-31HY1439bDRVawex -speculative true invalid arguments: flag provided but not defined: -speculative ❯ tf stacks configuration list -stack-id st-31HY1439bDRVawex -speculative invalid arguments: flag provided but not defined: -speculative ``` ``` ### Steps to Reproduce 1. Create a stack in HCP Terraform using `terraform stacks create ...` 2. Upload the configuration from a directory with the necessary files after initializing the stack. You can use https://github.com/quixoticmonk/hashiconf-stack as a sample stack. ### 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.