oracle / oracle/oci-cli

oci budgets command doesn't list all budgets

Open
#1,116 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

Platform: OCI (Oracle Cloud Infrastructure)
Host: MacOS Tahoe Version 26.5 (25F71)
IDE: VS Code 1.131.0 (Universal)
OCI CLI Version: 3.90.0

  • I ran terraform plan -out="/path/budget/plan.tf" to see what actions will be performed (module contains budget with 2 alerts, see here)

Output:

  • I ran terraform apply "path/budget/plan.tf" to deploy the budget in the selected compartment.

Output:

oci_budget_budget.dollar_budget: Creating...
oci_budget_budget.dollar_budget: Creation complete after 1s [id=ocid1.budget.oc1.ap-melbourne-1.amaaaaaahlgazfqau6jv6kiagfygucp74jcalxsy447vtosokuehbav27hga]
oci_budget_alert_rule.actual: Creating...
oci_budget_alert_rule.forecast: Creating...
oci_budget_alert_rule.actual: Creation complete after 1s [id=ocid1.alertrule.oc1.ap-melbourne-1.amaaaaaahlgazfqabzsi4suv46lukajhiis56txcazj34rgrvbzygrcqaktq]
oci_budget_alert_rule.forecast: Creation complete after 2s [id=ocid1.alertrule.oc1.ap-melbourne-1.amaaaaaahlgazfqaim2yzsfg47gbkhj2nu2ozyiq7rx3riyucem6ezycrldq]

Apply complete! Resources: 3 added, 0 changed, 0 destroyed.

  • Budget is now visible in OCI Console, but running oci budgets budget budget list --compartment-id --all shows nothing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported oci budgets budget budget list --compartment-id --all command in a compartment containing the Terraform-created budget and alert rules. Compare the CLI result with the OCI Console and the resources created by the linked Terraform module. Done means the command reliably lists the created budget, or the issue documents why it cannot.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, terraform
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.