AWS Amazon Neptune Cluster Parameter Group

This page shows how to write Terraform and CloudFormation for Amazon Neptune Cluster Parameter Group and write them securely.

aws_neptune_cluster_parameter_group (Terraform)

The Cluster Parameter Group in Amazon Neptune can be configured in Terraform with the resource name aws_neptune_cluster_parameter_group. The following sections describe 4 examples of how to use the resource and its parameters.

Example Usage from GitHub

param_group.tf#L1
resource "aws_neptune_cluster_parameter_group" "param_group" {
  family      = "neptune1"
  name        = "param-group"
  description = "neptune cluster parameter group"

  parameter {
main.tf#L7
resource "aws_neptune_cluster_parameter_group" "this" {
  description = var.description
  family      = var.family
  name        = var.name
  name_prefix = var.name_prefix
  tags        = var.tags
ParameterGroups.tf#L23
resource "aws_neptune_cluster_parameter_group" "clusterParameterGroup" {
  name   = format("%s-%s-%s-%s",lookup(var.data, "name"),lookup(var.tags, "product"),lookup(var.tags, "env"),"neptunecluster-parametergroup")
  family = lookup(var.data, "family")

  count = length(var.data.clusterParameterGroup)
  parameter {
main.tf#L106
resource "aws_neptune_cluster_parameter_group" "cluster_parameter_group" {
  count       = length(var.cluster_ParamGroup)
  family      = lookup(var.cluster_ParamGroup[count.index], "family")
  name        = lookup(var.cluster_ParamGroup[count.index], "name", null)
  description = lookup(var.cluster_ParamGroup[count.index], "description", null)

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

Manages a Neptune Cluster Parameter Group

AWS::Neptune::DBClusterParameterGroup (CloudFormation)

The DBClusterParameterGroup in Neptune can be configured in CloudFormation with the resource name AWS::Neptune::DBClusterParameterGroup. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

neptune-cluster.yaml#L77
    Type: 'AWS::Neptune::DBClusterParameterGroup'
    Properties:
      Family: neptune1
      Description: test-cfn-neptune-db-cluster-parameter-group-description
      Parameters:
        neptune_enable_audit_log: !Ref NeptuneEnableAuditLog
cfn-neptune-existing-vpc.yaml#L45
    Type: AWS::Neptune::DBClusterParameterGroup
    Properties:
      Description: Parameter Group for Neptune Cluster
      Family: neptune1 # must be 'neptune1'
      Parameters:
        neptune_streams: !If [ NeptuneStreamsEnabled, 1, 0]
neptune_template.yaml#L29
    Type: "AWS::Neptune::DBClusterParameterGroup"
    Properties:
      Description: default cluster parameter group for the leech graph layer
      Parameters:
        neptune_enable_audit_log: 1
      Family: neptune1
neptune_template.yaml#L20
    Type: "AWS::Neptune::DBClusterParameterGroup"
    Properties:
      Description: default cluster parameter group for the leech graph layer
      Parameters:
        neptune_enable_audit_log: 1
      Family: neptune1
neptune_template.yaml#L20
    Type: "AWS::Neptune::DBClusterParameterGroup"
    Properties:
      Description: default cluster parameter group for the leech graph layer
      Parameters:
        neptune_enable_audit_log: 1
      Family: neptune1
NeptuneDBClusterParameterGroupSpecification.json#L22
    "AWS::Neptune::DBClusterParameterGroup": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html",
      "Properties": {
        "Description": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-description",
NeptuneDBClusterParameterGroupSpecification.json#L22
    "AWS::Neptune::DBClusterParameterGroup": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html",
      "Properties": {
        "Description": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-description",
NeptuneDBClusterParameterGroupSpecification.json#L22
    "AWS::Neptune::DBClusterParameterGroup": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html",
      "Properties": {
        "Description": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-description",
NeptuneDBClusterParameterGroupSpecification.json#L22
    "AWS::Neptune::DBClusterParameterGroup": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html",
      "Properties": {
        "Description": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-description",
NeptuneDBClusterParameterGroupSpecification.json#L22
    "AWS::Neptune::DBClusterParameterGroup": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html",
      "Properties": {
        "Description": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-description",

Parameters

Explanation in CloudFormation Registry

The AWS::Neptune::DBClusterParameterGroup resource creates a new Amazon Neptune DB cluster parameter group.

Note Applying a parameter group to a DB cluster might require instances to reboot, resulting in a database outage while the instances reboot.

Frequently asked questions

What is AWS Amazon Neptune Cluster Parameter Group?

AWS Amazon Neptune Cluster Parameter Group is a resource for Amazon Neptune of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon Neptune Cluster Parameter Group?

For Terraform, the farahbhr/AWS, niveklabs/aws and suyog1pathak/eks source code examples are useful. See the Terraform Example section for further details.

For CloudFormation, the hobbit-project/neptune-system-adapter, rbilleci/aws-example-cloudformation and AlgernonSolutions/eventful_leech source code examples are useful. See the CloudFormation Example section for further details.