AWS DAX Parameter Group
This page shows how to write Terraform and CloudFormation for DAX Parameter Group and write them securely.
aws_dax_parameter_group (Terraform)
The Parameter Group in DAX can be configured in Terraform with the resource name aws_dax_parameter_group
. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_dax_parameter_group" "parameter_group" {
name = var.name
parameters {
name = "query-ttl-millis"
value = var.query_ttl
resource "aws_dax_parameter_group" "this" {
description = var.description
name = var.name
dynamic "parameters" {
for_each = var.parameters
resource "aws_dax_parameter_group" "example" {
name = var.parameters_group_name
dynamic "parameters" {
for_each = var.params
Parameters
-
description
optional - string -
id
optional computed - string -
name
required - string -
parameters
set block
Explanation in Terraform Registry
Provides a DAX Parameter Group resource.
Tips: Best Practices for The Other AWS DAX Resources
In addition to the aws_dax_cluster, AWS DAX has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.
aws_dax_cluster
Ensure to enable at rest encryption of DynamoDB Accelerator
It's better to enable at rest encryption of DynamoDB Accelerator to protect your data from unauthorized access to the underlying storage.
AWS::DAX::ParameterGroup (CloudFormation)
The ParameterGroup in DAX can be configured in CloudFormation with the resource name AWS::DAX::ParameterGroup
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::DAX::ParameterGroup
Properties:
Description: Parameter Group for the DynamoDB Accelerator Cluster
ParameterNameValues:
query-ttl-millis: 75000
record-ttl-millis: 88000
Type: AWS::DAX::ParameterGroup
Properties:
ParameterGroupName: my-dax-pg
ParameterNameValues:
query-ttl-millis: 75000
record-ttl-millis: 88000
Type: AWS::DAX::ParameterGroup
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html
Type: AWS::DAX::ParameterGroup
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html
Type: AWS::DAX::ParameterGroup
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html
"AWS::DAX::ParameterGroup": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html",
"Properties": {
"ParameterNameValues": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues",
"AWS::DAX::ParameterGroup": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html",
"Properties": {
"ParameterNameValues": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues",
"AWS::DAX::ParameterGroup": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html",
"Properties": {
"ParameterNameValues": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues",
"AWS::DAX::ParameterGroup": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html",
"Properties": {
"ParameterNameValues": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues",
"AWS::DAX::ParameterGroup": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html",
"Properties": {
"ParameterNameValues": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues",
Parameters
-
ParameterNameValues
optional - Json -
Description
optional - String -
ParameterGroupName
optional - String
Explanation in CloudFormation Registry
A named set of parameters that are applied to all of the nodes in a DAX cluster.
Frequently asked questions
What is AWS DAX Parameter Group?
AWS DAX Parameter Group is a resource for DAX of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS DAX Parameter Group?
For Terraform, the devops-made-easy/terraform-aws-dax, niveklabs/aws and JamesWoolfenden/terraform-aws-dax source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the brunokktro/auladobruno, knakayama/aws-cloudformation-playground and awslabs/aws-service-catalog-products source code examples are useful. See the CloudFormation Example section for further details.