Sha256: 668688907eef45771149327d4305ac8d3d09ed9bcd0b48413e248fbae3f124a8

Contents?: true

Size: 1.09 KB

Versions: 59

Compression:

Stored size: 1.09 KB

Contents

## Examples

    terraspace state list demo
    terraspace state mv demo
    terraspace state pull demo
    terraspace state push demo
    terraspace state replace demo
    terraspace state rm demo
    terraspace state show demo

## Args Straight Delegation

The `terraspace state` command delegates to the `terraform state` commands passing the arguments straight through. Refer to the underlying `terraform` command help for arguments.  Example:

    terraform state list -h
    ...
    Options:
    ...
    -id=ID              Filters the results to include only instances whose
                          resource types have an attribute named "id" whose value
                          equals the given id string.

This means we can use the `-id` or `--id` option and terraspace will pass it straight through. Example:

    terraspace state list demo --id enabled-bull
    Building .terraspace-cache/us-west-2/dev/stacks/demo
    Built in .terraspace-cache/us-west-2/dev/stacks/demo
    Current directory: .terraspace-cache/us-west-2/dev/stacks/demo
    => terraform state list --id enabled-bull
    random_pet.this

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cli/help/state.md
terraspace-2.2.16 lib/terraspace/cli/help/state.md
terraspace-2.2.15 lib/terraspace/cli/help/state.md
terraspace-2.2.14 lib/terraspace/cli/help/state.md
terraspace-2.2.13 lib/terraspace/cli/help/state.md
terraspace-2.2.12 lib/terraspace/cli/help/state.md
terraspace-2.2.11 lib/terraspace/cli/help/state.md
terraspace-2.2.10 lib/terraspace/cli/help/state.md
terraspace-2.2.9 lib/terraspace/cli/help/state.md
terraspace-2.2.8 lib/terraspace/cli/help/state.md
terraspace-2.2.7 lib/terraspace/cli/help/state.md
terraspace-2.2.6 lib/terraspace/cli/help/state.md
terraspace-2.2.5 lib/terraspace/cli/help/state.md
terraspace-2.2.4 lib/terraspace/cli/help/state.md
terraspace-2.2.3 lib/terraspace/cli/help/state.md
terraspace-2.2.2 lib/terraspace/cli/help/state.md
terraspace-2.2.1 lib/terraspace/cli/help/state.md
terraspace-2.2.0 lib/terraspace/cli/help/state.md
terraspace-2.1.7 lib/terraspace/cli/help/state.md
terraspace-2.1.6 lib/terraspace/cli/help/state.md