awscc_rds_db_parameter_group (Resource)

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. For information about configuring parameters for Amazon RDS DB instances, see Working with parameter groups in the Amazon RDS User Guide. For information about configuring parameters for Amazon Aurora DB instances, see Working with parameter groups in the Amazon Aurora User Guide. Applying a parameter group to a DB instance may require the DB instance to reboot, resulting in a database outage for the duration of the reboot.

Example Usage

Basic example

To create a simple db parameter group

resource "awscc_rds_db_parameter_group" "this" {
  description = "rds sample db parameter group"
  family      = "mysql5.6"

  parameters = {
    "character_set_server" = "utf8"
    "character_set_client" = "utf8"
  }
}

Example with tags

To create a db parameter group with tags

resource "awscc_rds_db_parameter_group" "this" {
  description = "rds sample db parameter group"
  family      = "mysql5.6"

  parameters = {
    "character_set_server" = "utf8"
    "character_set_client" = "utf8"
  }

  tags = [{
    key   = "Name"
    value = "this"
  }]
}

Example with create_before_destroy Lifecycle Configuration.

To create a db parameter group with create_before_destroy Lifecycle Configuration example

resource "awscc_rds_db_parameter_group" "this" {
  description = "rds sample db parameter group"
  family      = "mysql5.7"

  parameters = {
    "character_set_server" = "utf8"
    "character_set_client" = "utf8"
  }

  lifecycle {
    create_before_destroy = true
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for tags

Required:

Optional:

Import

Import is supported using the following syntax:

$ terraform import awscc_rds_db_parameter_group.example <resource ID>