Resource: aws_elasticache_parameter_group

Provides an ElastiCache parameter group resource.

Example Usage

resource "aws_elasticache_parameter_group" "default" {
  name   = "cache-params"
  family = "redis2.8"

  parameter {
    name  = "activerehashing"
    value = "yes"
  }

  parameter {
    name  = "min-slaves-to-write"
    value = "2"
  }
}

Argument Reference

This resource supports the following arguments:

Parameter blocks support the following:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import ElastiCache Parameter Groups using the name. For example:

import {
  to = aws_elasticache_parameter_group.default
  id = "redis-params"
}

Using terraform import, import ElastiCache Parameter Groups using the name. For example:

% terraform import aws_elasticache_parameter_group.default redis-params