Skip to main content

okustera_pricing_rates (Data Source)

The okustera_pricing_rates data source retrieves the current cloud pricing rate sheet, allowing Terraform configurations to dynamically calculate estimated monthly spend or assert cost limits before resource creation.

Example Usage​

data "okustera_pricing_rates" "current" {}

output "postgres_hourly_rate" {
value = data.okustera_pricing_rates.current.database_rates["postgresql_instance_per_hour"]
}

Schema​

Read-Only Attributes​

  • id (String) Data source identifier.
  • currency (String) ISO currency code (e.g. USD).
  • compute_rates (Map of Number) Per-vCPU and per-GB RAM hourly rates.
  • storage_rates (Map of Number) Block storage (Ceph RBD) and S3 object storage per-GB monthly rates.
  • database_rates (Map of Number) Managed database instance hourly rates.
  • function_rates (Map of Number) Serverless per-million execution and GB-second rates.