Skip to main content
The db_parameter_group submodule creates an aws_db_parameter_group for a specific engine family. Parameter groups let you manage database engine settings across one or more DB instances.

Source

Usage

Use this submodule standalone when you want to share a parameter group across multiple DB instances or manage parameters outside the lifecycle of a single DB instance:
Then reference the output in a DB instance:

Input variables

bool
Whether to create the parameter group resource.Default: true
string
The name of the DB parameter 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 DB parameter group.Default: null
string
The engine family for the parameter group (e.g. mysql8.0, postgres15, oracle-se2-19). This must match the engine version of the DB instance.Default: null
list(object)
A list of DB parameters to apply to the parameter group.Default: null
bool
Set to true to prevent the parameter group from being deleted at destroy time. The resource is instead just removed from Terraform state.Default: null
string
Region where the parameter 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 DB parameter group resource.Default: {}

Outputs

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