AWS CloudFormation
User Guide (Version )

AWS::RDS::DBParameterGroup

The AWS::RDS::DBParameterGroup resource creates a custom parameter group for an RDS database family.

This type can be declared in a template and referenced in the DBParameterGroupName property of an AWS::RDS::DBInstance resource.

Note

Applying a parameter group to a DB instance may require the instance to reboot, resulting in a database outage for the duration of the reboot.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::RDS::DBParameterGroup", "Properties" : { "Description" : String, "Family" : String, "Parameters" : {Key : Value, ...}, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::RDS::DBParameterGroup Properties: Description: String Family: String Parameters: Key : Value Tags: - Tag

Properties

Description

Provides the customer-specified description for this DB Parameter Group.

Required: Yes

Type: String

Update requires: No interruption

Family

Provides the name of the DB Parameter Group Family that this DB Parameter Group is compatible with.

Required: Yes

Type: String

Update requires: No interruption

Parameters

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

MySQL

Valid Values (for Apply method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots.

Oracle

Valid Values (for Apply method): pending-reboot

Required: No

Type: Map of String

Update requires: No interruption

Tags

Tags to assign to the DB parameter group.

Required: No

Type: List of Tag

Update requires: No interruption

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the name of the DB parameter group.

For more information about using the Ref function, see Ref.

Examples

The following example creates a parameter group for an Aurora DB cluster that applies the IGNORE_SPACE SQL mode.

JSON

{ "RDSDBParameterGroup": { "Type": "AWS::RDS::DBParameterGroup", "Properties": { "Description": "CloudFormation Sample Parameter Group", "Family": "aurora5.6", "Parameters": { "sql_mode": "IGNORE_SPACE" } } } }

YAML

--- RDSDBParameterGroup: Properties: Description: "CloudFormation Sample Parameter Group" Family: aurora5.6 Parameters: sql_mode: IGNORE_SPACE Type: "AWS::RDS::DBParameterGroup"