Skip to content

feat(ci): add free tier capacity pre-flight check before tofu plan#43

Merged
syscod3 merged 3 commits intomainfrom
feat/capacity-guard
Mar 24, 2026
Merged

feat(ci): add free tier capacity pre-flight check before tofu plan#43
syscod3 merged 3 commits intomainfrom
feat/capacity-guard

Conversation

@syscod3
Copy link
Copy Markdown
Collaborator

@syscod3 syscod3 commented Mar 24, 2026

Summary

  • Add OCI CLI capacity pre-flight step before tofu plan
  • Queries live OCI state to catch config errors and drift
  • Checks A1 OCPU, A1 RAM, and E2.1.Micro count independently
  • Fails on: tfvars requests > limit or live state > limit

Test plan

  • Verify pre-flight step passes on next deploy

🤖 Generated with Claude Code

syscod3 and others added 3 commits March 24, 2026 23:16
- Explicitly define 4 nodes (was defaulting to 3)
- Name after tenant: syscode-1 through syscode-4
- Add gitignore pattern for numbered tfstate backup files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Query live OCI state before planning to catch:
- Config errors: tfvars requests more than the per-tenancy limit
- Drift: live instances already exceed limit from out-of-band provisioning

Checks A1 OCPU, A1 RAM, and E2.1.Micro count independently.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@syscod3 syscod3 force-pushed the feat/capacity-guard branch from 07b2046 to 33472cb Compare March 24, 2026 23:16
@syscod3 syscod3 merged commit 200dc45 into main Mar 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant