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

main.tf#L7
resource "aws_dax_parameter_group" "parameter_group" {
  name = var.name

  parameters {
    name  = "query-ttl-millis"
    value = var.query_ttl
main.tf#L7
resource "aws_dax_parameter_group" "this" {
  description = var.description
  name        = var.name

  dynamic "parameters" {
    for_each = var.parameters
aws_dax_parameter_group.example.tf#L1
resource "aws_dax_parameter_group" "example" {
  name = var.parameters_group_name

  dynamic "parameters" {
    for_each = var.params

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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.

risk-label

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.

Review your AWS DAX settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

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

Lab%204%20-%20Working%20with%20Amazon%20DynamoDB%20Tables.yml#L250
    Type: AWS::DAX::ParameterGroup
    Properties:
      Description: Parameter Group for the DynamoDB Accelerator Cluster
      ParameterNameValues:
        query-ttl-millis: 75000
        record-ttl-millis: 88000
template.yml#L21
    Type: AWS::DAX::ParameterGroup
    Properties:
      ParameterGroupName: my-dax-pg
      ParameterNameValues:
        query-ttl-millis: 75000
        record-ttl-millis: 88000
product.template-us-east-1.yaml#L5
    Type: AWS::DAX::ParameterGroup
    Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html
product.template-us-west-2.yaml#L5
    Type: AWS::DAX::ParameterGroup
    Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html
product.template-ap-northeast-1.yaml#L5
    Type: AWS::DAX::ParameterGroup
    Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html
DAXParameterGroupSpecification.json#L3
    "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",
DAXParameterGroupSpecification.json#L3
    "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",
DAXParameterGroupSpecification.json#L3
    "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",
DAXParameterGroupSpecification.json#L3
    "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",
DAXParameterGroupSpecification.json#L3
    "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

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.