-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add terraform refresh command #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughA new task named refresh was added to lib/terraform/Taskfile.yml. It includes a description, multi-line summary, working directory set to {{.USER_WORKING_DIR}}, silent: true, and reuses shared vars via *vars. A precondition checks for the presence of {{.TFVARS_FILE}}. The command sequence runs: terraform refresh -var-file {{.TFVARS_FILE}} {{.TF_ARGS}}. The task mirrors the structure of existing Terraform tasks (init/plan/apply). Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
lib/terraform/Taskfile.yml (1)
84-85: Fix usage/example typos (tofu → terraform; add task).Copy/paste error: keep terminology consistent with other tasks.
Apply this minimal diff if you keep the refresh command:
- Usage: task terraform:refresh -- ENVIRONMENT [tofu refresh arguments] - Example: terraform tofu:refresh -- automation + Usage: task terraform:refresh -- ENVIRONMENT [terraform refresh arguments] + Example: task terraform:refresh -- automation
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
oycyc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving but I believe this Taskfile in this repository is out of date. As part of this Taskfile automation, it should also select the workspace to take off the load from the user having to constantly switch tofu workspace select [abc]. See our mp-infra, I believe that accounts for it.
|
@oycyc good. I'll merge this PR and then follow up with a different one to address the workspace part that you pointed out. |
🤖 I have created a release *beep* *boop* --- ## [0.5.0](v0.4.0...v0.5.0) (2025-11-11) ### Features * add linter configs to the os sync task ([#26](#26)) ([6142651](6142651)) * add terraform refresh command ([#33](#33)) ([2bb2893](2bb2893)) * add workspace selection ([#35](#35)) ([ac8f80c](ac8f80c)) * **pruning:** remove cursor specific task commands. ([#37](#37)) ([8c908c2](8c908c2)) * **tf:** default to tofu and allow switching back to terraform ([#38](#38)) ([71d42fe](71d42fe)) * **tf:** update the tf:init command to work for TF dynamic backends ([#40](#40)) ([0706965](0706965)) ### Bug Fixes * **aqua:** update installer version to pull in checksum fix ([#34](#34)) ([b47b0ef](b47b0ef)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
what
terraform refreshin our task commands so it's similar toterraform [plan | apply]why
terraform refreshwhile migrating state from local to a remote backend.references
Summary by CodeRabbit