Commit 2bb2893
feat: add terraform refresh command (#33)
## what
- Add `terraform refresh` in our task commands so it's similar to
`terraform [plan | apply]`
## why
- There are situations where we need `terraform refresh` while migrating
state from local to a remote backend.
## references
- masterpointio/mp-infra#211
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- New Features
- Added a Terraform task to refresh state for a selected environment.
- Uses environment-specific variables file and supports additional
Terraform arguments.
- Includes a pre-run check to ensure the variables file exists.
- Behavior aligns with existing Terraform tasks for a consistent
workflow.
- Runs quietly in the current working directory to reduce noise.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent f11cee7 commit 2bb2893
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
0 commit comments