opentelekomcloud_taurusdb_mysql_quota_v3¶
Manages a TaurusDB MySQL quota resource within OpenTelekomCloud.
Example Usage¶
variable "enterprise_project_id" {}
resource "opentelekomcloud_taurusdb_mysql_quota_v3" "test" {
enterprise_project_id = var.enterprise_project_id
instance_quota = 10
vcpus_quota = 0
ram_quota = 30
}
Argument Reference¶
The following arguments are supported:
enterprise_project_id- (Required, String, ForceNew) Specifies the enterprise project ID. Changing this parameter will create a new resource.instance_quota- (Optional, Int) Specifies the instance quantity quota. Value range: -1 to 100000. The value -1 indicates no limit. If there are already instances created, this parameter value must be greater than the number of existing instances. Defaults to -1.vcpus_quota- (Optional, Int) Specifies the vCPU quota. Value range: -1 to 2147483646. The value -1 indicates no limit. If there are already instances created, this parameter value must be greater than the number of used vCPUs. Defaults to -1.ram_quota- (Optional, Int) Specifies the memory quota in GB. Value range: -1 to 2147483646. The value -1 indicates no limit. If there are already instances created, this parameter value must be greater than the used memory size. Defaults to -1.
Attribute Reference¶
In addition to all arguments above, the following attributes are exported:
id- Indicates the resource ID. The value isenterprise_project_id.region- Indicates the region in which to create the resource.enterprise_project_name- Indicates the enterprise project name.availability_instance_quota- Indicates the remaining instance quota.availability_vcpus_quota- Indicates the remaining vCPU quota.availability_ram_quota- Indicates the remaining memory quota.
Timeouts¶
This resource provides the following timeouts configuration options:
create- Default is 10 minutes.update- Default is 10 minutes.delete- Default is 10 minutes.
Import¶
The TaurusDB MySQL quota can be imported using the id, e.g.
$ terraform import opentelekomcloud_taurusdb_mysql_quota_v3.test <id>