Create and Connect to an Amazon DocumentDB Cluster

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, you will create and connect to an Amazon DocumentDB cluster. After completing this lab, you will have hands-on experience with deploying a simple DocumentDB cluster and connecting using the `mongosh` client.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a New VPC Security Group

Create a new security group with one rule, allowing incoming connections from the application host on port 27017.

Deploy a New Amazon DocumentDB Cluster

Create a new database subnet group for the cluster. Select db.t3.medium as the instance class.

Connect to the Cluster

Using the mongosh client and the information from the AWS console, connect to your newly created DocumentDB cluster.

Additional Resources

You are working as a database administrator (DBA) and are tasked with deploying a document database for a new project. You have chosen Amazon DocumentDB as the document database. Once the cluster is deployed, be sure to test connectivity from the application host using the mongosh command-line client.

To accomplish this, you will need to complete the following tasks:

  • Create a security group.
  • Deploy an Amazon DocumentDB cluster.
  • Connect using mongosh.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?