Loading...
Loading...
### Terraform Version ```shell v1.9.8 ``` ### Terraform Configuration Files N/A ### Debug Output ``` ek-mac@job nomad $ terraform providers -state state.d/terraform.tfstate Usage: terraform [global options] providers [options] [DIR] Prints out a tree of modules in the referenced configuration annotated with their provider requirements. This provides an overview of all of the provider requirements across all referenced modules, as an aid to understanding why particular provider plugins are needed and why particular versions are selected. Options: -test-directory=path Set the Terraform test directory, defaults to "tests". Error parsing command-line flags: flag provided but not defined: -state ek-mac@job nomad $ terraform -state state.d/terraform.tfstate providers Invalid flags before the subcommand. If these flags are for the subcommand, please put them after the subcommand. Usage: terraform [global options] state [options] [args] This command has subcommands for advanced state management. These subcommands can be used to slice and dice the Terraform state. This is sometimes necessary in advanced cases. For your safety, all state management commands that modify the state create a timestamped backup of the state prior to making modifications. The structure and output of the commands is specifically tailored to work well with the common Unix utilities such as grep, awk, etc. We recommend using those tools to perform more advanced state tasks. Subcommands: list List resources in the state mv Move an item in the state pull Pull current state and output to stdout push Update remote state from a local state file replace-provider Replace provider in the state rm Remove instances from the state show Show a resource in the stateek-mac@job nomad $ terraform providers -state state.d/terraform.tfstate Usage: terraform [global options] providers [options] [DIR] Prints out a tree of modules in the referenced configuration annotated with their provider requirements. This provides an overview of all of the provider requirements across all referenced modules, as an aid to understanding why particular provider plugins are needed and why particular versions are selected. Options: -test-directory=path Set the Terraform test directory, defaults to "tests". Error parsing command-line flags: flag provided but not defined: -state ek-mac@job nomad $ terraform -state state.d/terraform.tfstate providers Invalid flags before the subcommand. If these flags are for the subcommand, please put them after the subcommand. Usage: terraform [global options] state [options] [args] This command has subcommands for advanced state management. These subcommands can be used to slice and dice the Terraform state. This is sometimes necessary in advanced cases. For your safety, all state management commands that modify the state create a timestamped backup of the state prior to making modifications. The structure and output of the commands is specifically tailored to work well with the common Unix utilities such as grep, awk, etc. We recommend using those tools to perform more advanced state tasks. Subcommands: list List resources in the state mv Move an item in the state pull Pull current state and output to stdout push Update remote state from a local state file replace-provider Replace provider in the state rm Remove instances from the state show Show a resource in the state ``` ### Expected Behavior I should be able to list providers. I suppose `-state` option should be global. ### Actual Behavior Can not run `terraform providers` ### Steps to Reproduce See above ### 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.