alicloud_rds_parameter_group
更新时间:
Provides a RDS Parameter Group resource.
For information about RDS Parameter Group and how to use it, see What is Parameter Group.
-> NOTE: Available since v1.119.0.
Example Usage
Basic Usage
variable "name" {
default = "tf_example"
}
resource "alicloud_rds_parameter_group" "default" {
engine = "mysql"
engine_version = "5.7"
param_detail {
param_name = "back_log"
param_value = "4000"
}
param_detail {
param_name = "wait_timeout"
param_value = "86460"
}
parameter_group_desc = var.name
parameter_group_name = var.name
}
Argument Reference
The following arguments are supported:
engine- (Required, ForceNew) The database engine. Valid values:mysql,mariadb,PostgreSQL.engine_version- (Required, ForceNew) The version of the database engine. Valid values: mysql:5.1,5.5,5.6,5.7,8.0; mariadb:10.3; PostgreSQL:10.0,11.0,12.0,13.0,14.0,15.0.param_detail- (Required) Parameter list. Seeparam_detailbelow.parameter_group_desc- (Optional) The description of the parameter template.parameter_group_name- (Required) The name of the parameter template.
param_detail
The param_detail supports the following:
param_name- (Required) The name of a parameter.param_value- (Required) The value of a parameter.
Attributes Reference
The following attributes are exported:
id- The resource ID in terraform of Parameter Group.
Import
RDS Parameter Group can be imported using the id, e.g.
$ terraform import alicloud_rds_parameter_group.example <id>
该文章对您有帮助吗?