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.1.5 lib/terraspace/cli/help/state.md
terraspace-2.1.4 lib/terraspace/cli/help/state.md
terraspace-2.1.3 lib/terraspace/cli/help/state.md
terraspace-2.1.2 lib/terraspace/cli/help/state.md
terraspace-2.1.1 lib/terraspace/cli/help/state.md
terraspace-2.1.0 lib/terraspace/cli/help/state.md
terraspace-2.0.3 lib/terraspace/cli/help/state.md
terraspace-2.0.2 lib/terraspace/cli/help/state.md
terraspace-2.0.1 lib/terraspace/cli/help/state.md
terraspace-2.0.0 lib/terraspace/cli/help/state.md
terraspace-1.1.7 lib/terraspace/cli/help/state.md
terraspace-1.1.6 lib/terraspace/cli/help/state.md
terraspace-1.1.5 lib/terraspace/cli/help/state.md
terraspace-1.1.4 lib/terraspace/cli/help/state.md
terraspace-1.1.3 lib/terraspace/cli/help/state.md
terraspace-1.1.2 lib/terraspace/cli/help/state.md
terraspace-1.1.1 lib/terraspace/cli/help/state.md
terraspace-1.1.0 lib/terraspace/cli/help/state.md
terraspace-1.0.6 lib/terraspace/cli/help/state.md
terraspace-1.0.5 lib/terraspace/cli/help/state.md