google_sql_tiers

Get all available machine types (tiers) for a project, for example, db-custom-1-3840. For more information see the official documentation and API.

Example Usage

data "google_sql_tiers" "tiers" {
  project = "sample-project"
}

locals {
  all_available_tiers = [for v in data.google_sql_tiers.tiers.tiers : v.tier]
}

output "avaialble_tiers" {
  description = "List of all available tiers for give project."
  value       = local.all_available_tiers
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: