Skip to main content
The db_option_group submodule creates an aws_db_option_group that can enable additional features for supported RDS engines such as MySQL, Oracle, Microsoft SQL Server, and MariaDB.
Option groups are not applicable to PostgreSQL. Do not set create_db_option_group = true or reference this submodule for PostgreSQL DB instances. PostgreSQL manages engine features through parameter groups instead.

Source

Usage

Use this submodule standalone to manage an option group independently of the DB instance lifecycle:
Then reference the output in a DB instance:

Input variables

bool
Whether to create the option group resource.Default: true
string
The name of the option group. When use_name_prefix is true, this is used as a prefix.Default: ""
bool
Determines whether to use name as-is or create a unique name beginning with name as the prefix.Default: true
string
The description of the option group.Default: null
string
The name of the engine the option group should be associated with (e.g. mysql, oracle-se2, sqlserver-ex, mariadb).Default: null
string
The major version of the engine the option group should be associated with (e.g. 8.0, 19, 15.00).Default: null
list(object)
A list of options to enable in the option group.Default: null
bool
Set to true to prevent the option group from being deleted at destroy time. The resource is instead just removed from Terraform state. Useful when active DB instances are associated with this option group.Default: null
object
Maximum timeout for deletion of the aws_db_option_group resource.Default: null
string
Region where the option group will be managed. Defaults to the region set in the provider configuration.Default: null
map(string)
A mapping of tags to assign to the option group resource.Default: {}

Outputs

string
The name (ID) of the DB option group. Pass this to the option_group_name input of a DB instance.
string
The ARN of the DB option group.