# Terraspace

## Basic

| # | Command                                                                                                                                                                  | Description                                                                      |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| 1 | <p><code>aws-vault exec dev -- env TS\_ENV=dev bundler exec terraspace plan \[project\_name]</code><br><br><code>TS\_ENV=dev terraspace plan \[project\_name]</code></p> | Run plan                                                                         |
| 2 | `aws-vault exec dev -- env TS_ENV=dev bundler exec terraspace up [project_name]`                                                                                         | Apply                                                                            |
| 3 | `aws-vault exec dev -- env TS_ENV=dev bundler exec terraspace down [project_name]`                                                                                       | Destroy                                                                          |
| 4 | `terraspace clean cache`                                                                                                                                                 | clean cache, when prompt confirm with y and enter                                |
| 5 | `TS_ENV=dev terraspace force-unlock service_name e39808d7-ba16-2467-837b-7855034316d2`                                                                                   | unlock the state, example lock state id: `e39808d7-ba16-2467-837b-7855034316d2)` |
