» huaweicloud_rds_flavors_v3

Use this data source to get available HuaweiCloud rds flavors.

» Example Usage

data "huaweicloud_rds_flavors_v3" "flavor" {
    db_type = "PostgreSQL"
    db_version = "9.5"
    instance_mode = "ha"
}

» Argument Reference

  • db_type - (Required) Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer.

  • db_version - (Required) Specifies the database version. Available value:

type version
MySQL 5.6
5.7
8.0
PostgreSQL 9.5
9.6
10
11
SQLServer 2008_R2_EE
2008_R2_WEB
2012_SE
2014_SE
2016_SE
2017_SE
2012_EE
2014_EE
2016_EE
2017_EE
2012_WEB
2014_WEB
2016_WEB
2017_WEB
  • instance_mode - (Required) The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance)

» Attributes Reference

In addition, the following attributes are exported:

  • flavors - Indicates the flavors information. Structure is documented below.

The flavors block contains:

  • name - The name of the rds flavor.
  • vcpus - Indicates the CPU size.
  • memory - Indicates the memory size in GB.
  • mode - See 'instance_mode' above.