Terraform
terraform stacks configuration list reference
Use the terraform stacks configuration list command to list configuration versions associated with a given Stack.
Usage
$ terraform stacks <global-stacks-flags> configuration list <options>
Description
The terraform stacks configuration list command lists Stack configurations associated with a given Stack. You must provide either a Stack ID or the combination of organization name, project name, and Stack name to identify the target Stack.
Options
- -organization-name: The name of the organization to target.- Optional when using -stack-id, required when using name-based targeting.
- String data type.
- Overrides the TF_STACKS_ORGANIZATION_NAMEenvironment variable if provided.
 
- Optional when using 
- -project-name: The name of the project to target.- Optional when using -stack-id, required when using name-based targeting.
- String data type.
- Overrides the TF_STACKS_PROJECT_NAMEenvironment variable if provided.
 
- Optional when using 
- -stack-name: The name of the Stack to target.- Optional when using -stack-id, required when using name-based targeting.
- String data type.
- Overrides the TF_STACKS_STACK_NAMEenvironment variable if provided.
 
- Optional when using 
- -stack-id: The ID of the Stack to list configurations for.- Optional (but required if not using -stack-name).
- String data type.
- Has precedence over the -stack-nameoption if both are provided.
 
- Optional (but required if not using 
- -json: Output results in JSON format instead of the default human-readable text format.- Optional.
- Boolean flag.
 
Examples
The following command lists configurations for a Stack using organization, project, and Stack names:
$ terraform stacks configuration list -organization-name my-org -project-name my-project -stack-name my-stack
The following command lists configurations using a Stack ID with JSON output:
$ terraform stacks configuration list -stack-id stack-abc123 -json
Global flags
Refer to Global flags reference for information about flags you can use with all commands.