Skip to content

Resource: awsRedshiftParameterGroup

Provides a Redshift Cluster parameter group resource.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.redshiftParameterGroup.RedshiftParameterGroup(this, "bar", {
  family: "redshift-1.0",
  name: "parameter-group-test-terraform",
  parameter: [
    {
      name: "require_ssl",
      value: "true",
    },
    {
      name: "query_group",
      value: "example",
    },
    {
      name: "enable_user_activity_logging",
      value: "true",
    },
  ],
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the Redshift parameter group.
  • family - (Required) The family of the Redshift parameter group.
  • description - (Optional) The description of the Redshift parameter group. Defaults to "Managed by Terraform".
  • parameter - (Optional) A list of Redshift parameters to apply.

Parameter blocks support the following:

  • name - (Required) The name of the Redshift parameter.
  • value - (Required) The value of the Redshift parameter.
  • tags - (Optional) A map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

You can read more about the parameters that Redshift supports in the documentation

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - Amazon Resource Name (ARN) of parameter group
  • id - The Redshift parameter group name.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

Redshift Parameter Groups can be imported using the name, e.g.,

$ terraform import aws_redshift_parameter_group.paramgroup1 parameter-group-test-terraform