You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tf): update the tf:init command to work for TF dynamic backends (#40)
## what
- We're modernized our TF backend strategy to use a single dynamic
backend file.
- Therefore, we can remove the backend file switching and simplify the
`tf:init` command
- Additionally, revised the task `desc` and `summary` attributes to
highlight ability to use either Terraform or OpenTofu as a follow up to
#38
## why
## references
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added support for OpenTofu as an alternative tool to Terraform for
infrastructure management, selectable via configuration.
* **Improvements**
* Simplified backend configuration handling by removing fixed
backend-file requirements.
* Introduced new public configuration variable for specifying custom
Terraform variables path location.
* Updated task naming conventions and descriptions to reflect dual tool
support.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
desc: Refresh the Terraform state to match the real-world infrastructure (safer via apply -refresh-only).
81
+
desc: Refresh the Terraform or OpenTofu state to match the real-world infrastructure (safer via apply -refresh-only).
84
82
summary: |
85
-
Refreshes the Terraform state for a specified environment, using a file to load the variables.
86
-
Note: Upstream deprecates `terraform refresh`; use `terraform apply -refresh-only` to review changes before writing state.
83
+
Refreshes the Terraform or OpenTofu state for a specified environment, using a file to load the variables.
84
+
The tool (Terraform or OpenTofu) is selected via the USE_TERRAFORM environment variable.
85
+
Note: Upstream deprecates `terraform refresh`; use `terraform apply -refresh-only` or `tofu apply -refresh-only` to review changes before writing state.
87
86
Requires a variables file specific to the environment to be present.
0 commit comments