Fix atmos terraform output JSON flag for 1.210.0+#81
Conversation
Change `--json` to `-json` in OutputJsonE() so the flag is passed through to Terraform correctly. Atmos 1.210.0+ no longer recognizes `--json` as an atmos-level flag; `-json` is the native Terraform flag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
WalkthroughAdds a Compatibility note to README requiring Atmos 1.210.0+ for Terraform Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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.
🧹 Nitpick comments (1)
.github/workflows/validate-codeowners.yml (1)
8-12: Refactoring to shared workflow is sound.The consolidation of fork detection logic into a single
is_forkinput is clean, and delegating to the shared workflow reduces maintenance burden. Thesecrets: inheritpattern is appropriate.Minor suggestion: The reusable workflow is pinned to
@main. For better reproducibility and protection against breaking changes, consider pinning to a specific SHA or release tag (though this is common practice within cloudposse).🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/validate-codeowners.yml around lines 8 - 12, The workflow currently depends on the reusable workflow reference pinned to `@main` (uses: cloudposse/.github/.github/workflows/shared-codeowners.yml@main); change that to a fixed immutable ref (a release tag or commit SHA) to avoid accidental breaking changes—update the uses value for the ci-codeowners step to cloudposse/.github/.github/workflows/shared-codeowners.yml@<release-tag-or-sha> while keeping the is_fork input and secrets: inherit unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/validate-codeowners.yml:
- Around line 8-12: The workflow currently depends on the reusable workflow
reference pinned to `@main` (uses:
cloudposse/.github/.github/workflows/shared-codeowners.yml@main); change that to
a fixed immutable ref (a release tag or commit SHA) to avoid accidental breaking
changes—update the uses value for the ci-codeowners step to
cloudposse/.github/.github/workflows/shared-codeowners.yml@<release-tag-or-sha>
while keeping the is_fork input and secrets: inherit unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: edebce33-fafb-4f63-823d-95c3481738e2
📒 Files selected for processing (1)
.github/workflows/validate-codeowners.yml
Summary
--jsonto-jsoninOutputJsonE()so the flag is passed through to Terraform correctly--jsonas an atmos-level flag;-jsonis the native Terraform flagREADME.yamlTest plan
go build ./...passesgo vet ./...passesatmos terraform output <component> --skip-init -s <stack> -- -json <key>works with atmos 1.210.0+🤖 Generated with Claude Code