The AWS::RDS::OptionGroup resource creates an option group, to enable and configure features that are specific to a particular DB engine.
MySQL RDS Option Group with MEMCACHED options
data "aws_vpc" "default" {
default = true
}
data "aws_security_group" "default" {
name = "default"
vpc_id = data.aws_vpc.default.id
}
resource "awscc_rds_option_group" "example_rds_option_group" {
engine_name = "mysql"
major_engine_version = "8.0"
option_group_description = "Example MySQL RDS option group using Memcached"
option_configurations = [{
option_name = "MEMCACHED"
vpc_security_group_memberships = [data.aws_security_group.default.id]
port = 3306
option_settings = [{
name = "CHUNK_SIZE"
value = "32"
},
{
name = "BINDING_PROTOCOL"
value = "ascii"
}]
}]
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
SQL Server RDS Option Group
resource "awscc_rds_option_group" "example_rds_option_group_mssql" {
engine_name = "sqlserver-se"
major_engine_version = "12.00"
option_group_description = "SQL Server Option Group"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
engine_name
(String) Indicates the name of the engine that this option group can be applied to.major_engine_version
(String) Indicates the major engine version associated with this option group.option_group_description
(String) Provides a description of the option group.option_configurations
(Attributes List) Indicates what options are available in the option group. (see below for nested schema)option_group_name
(String) Specifies the name of the option group.tags
(Attributes List) An array of key-value pairs to apply to this resource. (see below for nested schema)id
(String) Uniquely identifies the resource.option_configurations
Required:
option_name
(String) The configuration of options to include in a group.Optional:
db_security_group_memberships
(Set of String) A list of DBSecurityGroupMembership name strings used for this option.option_settings
(Attributes List) The option settings to include in an option group. (see below for nested schema)option_version
(String) The version for the option.port
(Number) The optional port for the option.vpc_security_group_memberships
(Set of String) A list of VpcSecurityGroupMembership name strings used for this option.option_configurations.option_settings
Optional:
name
(String) The name of the option that has settings that you can set.value
(String) The current value of the option setting.tags
Required:
key
(String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.Optional:
value
(String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.Import is supported using the following syntax:
$ terraform import awscc_rds_option_group.example <resource ID>