Manages a DocumentDB Cluster Parameter Group
resource "aws_docdb_cluster_parameter_group" "example" {
family = "docdb3.6"
name = "example"
description = "docdb cluster parameter group"
parameter {
name = "tls"
value = "enabled"
}
}
This resource supports the following arguments:
name
- (Optional, Forces new resource) The name of the DocumentDB cluster parameter group. If omitted, Terraform will assign a random, unique name.name_prefix
- (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts with name
.family
- (Required, Forces new resource) The family of the DocumentDB cluster parameter group.description
- (Optional, Forces new resource) The description of the DocumentDB cluster parameter group. Defaults to "Managed by Terraform".parameter
- (Optional) A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.tags
- (Optional) A map of tags to assign to the resource. 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 DocumentDB parameter.value
- (Required) The value of the DocumentDB parameter.apply_method
- (Optional) Valid values are immediate
and pending-reboot
. Defaults to pending-reboot
.This resource exports the following attributes in addition to the arguments above:
id
- The DocumentDB cluster parameter group name.arn
- The ARN of the DocumentDB cluster 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 DocumentDB Cluster Parameter Groups using the name
. For example:
import {
to = aws_docdb_cluster_parameter_group.cluster_pg
id = "production-pg-1"
}
Using terraform import
, import DocumentDB Cluster Parameter Groups using the name
. For example:
% terraform import aws_docdb_cluster_parameter_group.cluster_pg production-pg-1