Repository navigation
chore(iac): enable ri_exchange_reshape schedule in GCP and Azure staging and prod - #863
Conversation
…ing and prod Mirrors #856, which did the same for dev. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 4 billable files and costs up to $1.00.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 39 minutes for your next included review. View limit details
Comment |
Gate verdict: APPROVE at 461f373Independent adversarial review by the gate agent (not the author). Config-only change, no deploy dispatched. Diff (4 files, +12/-8). Each file adds one line
Wiring. What runs per tick in prod (every 6h), from
So the schedule alone moves no money. Money moves only where a holder of Azure preconditions. The precondition requires Deploy path (PR body claims confirmed). Local verification (from CI: all checks green and mergeStateStatus CLEAN at 461f373. |
Summary
Adds
enable_ri_exchange_schedule = truetoterraform/environments/{gcp,azure}/github-{staging,prod}.tfvars(one line each, fmt alignment kept). Mirrors #856, which did the same for the dev tfvars. Owner decision: enable in staging and prod as well as dev. Module defaults and AWS are untouched. The variable is already wired ingcp/compute.tfandazure/compute.tf.What this changes at runtime
ri_exchange_reshapejob is created in those environments. When it fires, it only does work where the global config hasRIExchangeEnabledtrue. Where it is false,handleRIExchangeReshapereturns early (internal/server/handler_ri_exchange.go:42, "RI exchange automation is disabled, skipping"). Creating the schedule does not turn automation on..github/workflows):deploy-gcp.ymlanddeploy-azure.ymlrun on push tomainwith no environment input, which resolves todevonly.workflow_dispatch(environment choice), or throughdeploy-all.yml, which isworkflow_dispatchor a release created event; a release deploys prod to all selected clouds.Verification
terraform fmt -checkclean in gcp and azure.terraform init -backend=falseandterraform validatesucceed in both env dirs.🤖 Generated with Claude Code