AWS Amazon DocumentDB Subnet Group

This page shows how to write Terraform and CloudFormation for Amazon DocumentDB Subnet Group and write them securely.

aws_docdb_subnet_group (Terraform)

The Subnet Group in Amazon DocumentDB can be configured in Terraform with the resource name aws_docdb_subnet_group. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

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 an DocumentDB subnet group resource.

Tips: Best Practices for The Other AWS Amazon DocumentDB Resources

In addition to the aws_docdb, AWS Amazon DocumentDB has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.

risk-label

aws_docdb_cluster

Ensure AWS DocumentDB logging is enabled

It is better to enable AWS DocumentDB logging for auditing and following compliance requirements.

Review your AWS Amazon DocumentDB 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::DocDB::DBSubnetGroup (CloudFormation)

The DBSubnetGroup in DocDB can be configured in CloudFormation with the resource name AWS::DocDB::DBSubnetGroup. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

The AWS::DocDB::DBSubnetGroup Amazon DocumentDB (with MongoDB compatibility) resource describes a DBSubnetGroup. subnet groups must contain at least one subnet in at least two Availability Zones in the AWS Region. For more information, see DBSubnetGroup in the Amazon DocumentDB Developer Guide.

Frequently asked questions

What is AWS Amazon DocumentDB Subnet Group?

AWS Amazon DocumentDB Subnet Group is a resource for Amazon DocumentDB of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.