- Cluster parameter group (
aws_rds_cluster_parameter_group) — applies to the entire cluster and engine-level settings. - DB parameter group (
aws_db_parameter_group) — applies per-instance and controls instance-level settings.
Cluster parameter group
Set thecluster_parameter_group variable to create a new cluster parameter group:
Configuration for the cluster parameter group. When set to
null (default), no group is created.family(required) — The parameter group family, e.g.aurora-postgresql17,aurora-mysql8.0.name(optional) — Name for the group. Defaults tovar.name.use_name_prefix(optional, defaulttrue) — Use the name as a prefix for a unique generated name.description(optional) — Description. Defaults to"<family> for Aurora cluster <name>".parameters(optional) — List of parameter objects. Each has:name— parameter namevalue— parameter valueapply_method(optional, default"immediate") —"immediate"or"pending-reboot"
Name of an existing cluster parameter group to attach. Use this when
cluster_parameter_group is null.DB parameter group
Set thedb_parameter_group variable to create a new DB parameter group applied to all instances:
Configuration for the DB (instance-level) parameter group. When set to
null (default), no group is created.Same structure as cluster_parameter_group: family, name, use_name_prefix, description, and parameters.db_parameter_group_name in the instances map:
immediate vs pending-reboot — Use apply_method = "immediate" for parameters that can be changed without a restart (dynamic parameters). Use apply_method = "pending-reboot" for static parameters that require a database restart to take effect. Applying the wrong method for a static parameter will result in an error from the AWS API.Major version upgrades
When performing a major engine version upgrade, you can specify a parameter group that applies to all instances during the upgrade:Enable major engine version upgrades when changing
engine_version.Instance parameter group to associate with all instances during a major version upgrade. Only valid when
allow_major_version_upgrade is true.Common parameter families
| Engine | Family examples |
|---|---|
| Aurora PostgreSQL 17 | aurora-postgresql17 |
| Aurora PostgreSQL 16 | aurora-postgresql16 |
| Aurora PostgreSQL 14 | aurora-postgresql14 |
| Aurora MySQL 8.0 | aurora-mysql8.0 |
Examples
- PostgreSQL
- MySQL
Taken from the
postgresql example — sets a slow query log threshold and enforces SSL:
