Provides an ElastiCache parameter group resource.
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"
}
}
This resource supports the following arguments:
name
- (Required) The name of the ElastiCache parameter group.family
- (Required) The family of the ElastiCache parameter group.description
- (Optional) The description of the ElastiCache parameter group. Defaults to "Managed by Terraform".parameter
- (Optional) A list of ElastiCache parameters to apply.tags
- (Optional) Key-value mapping of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.Parameter blocks support the following:
name
- (Required) The name of the ElastiCache parameter.value
- (Required) The value of the ElastiCache parameter.This resource exports the following attributes in addition to the arguments above:
id
- The ElastiCache parameter group name.arn
- The AWS ARN associated with the parameter group.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.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