Getting started with MemoryDB
This exercise leads you through the steps to create, grant access to, connect to, and finally delete a MemoryDB cluster using the MemoryDB Management Console.
Note
For the purposes of this exercise, we recommend you use the Easy create option when creating a cluster and return to the other two options once you have further explored MemoryDB's features.
Topics
Step 1: Setting up
Following, you can find topics that describe the one-time actions you must take to start using MemoryDB.
Sign up for an AWS account
To get started with AWS, you need an AWS account. For information about creating an AWS account, see Getting started with an AWS account in the AWS Account Management Reference Guide.
Set up your permissions (new MemoryDB users only)
To provide access, add permissions to your users, groups, or roles:
-
Users and groups in AWS IAM Identity Center:
Create a permission set. Follow the instructions in Create a permission set in the AWS IAM Identity Center User Guide.
-
Users managed in IAM through an identity provider:
Create a role for identity federation. Follow the instructions in Create a role for a third-party identity provider (federation) in the IAM User Guide.
-
IAM users:
-
Create a role that your user can assume. Follow the instructions in Create a role for an IAM user in the IAM User Guide.
-
(Not recommended) Attach a policy directly to a user or add a user to a user group. Follow the instructions in Adding permissions to a user (console) in the IAM User Guide.
-
MemoryDB creates and uses service-linked roles to provision resources and access other
AWS resources and services on your behalf. For MemoryDB to create a service-linked role
for you, use the AWS-managed policy named AmazonMemoryDBFullAccess. This
role comes preprovisioned with permission that the service requires to create a
service-linked role on your behalf.
You might decide not to use the default policy and instead to use a custom-managed policy.
In this case, make sure that you have either permissions to call
iam:createServiceLinkedRole or that you have created the MemoryDB
service-linked role.
For more information, see the following:
Step 2: Create a cluster
Before creating a cluster for production use, you obviously need to consider how you will configure the cluster to meet your business needs. Those issues are addressed in the Preparing a cluster section. For the purposes of this Getting Started exercise, you can accept the default configuration values where they apply.
The cluster you create will be live, and not running in a sandbox. You will
incur the standard MemoryDB usage fees for the instance until you delete it. The total
charges will be minimal (typically less than a dollar) if you complete the exercise
described here in one sitting and delete your cluster when you are finished. For more
information about MemoryDB usage rates, see MemoryDB
Your cluster is launched in a virtual private cloud (VPC) based on the Amazon VPC service.
Creating a MemoryDB cluster
The following examples show how to create a cluster using the AWS Management Console, AWS CLI and MemoryDB API.
To create a cluster using the MemoryDB console
-
Sign in to the AWS Management Console and open the MemoryDB console at https://console.aws.amazon.com/memorydb/
. -
Choose Clusters In the left navigation pane and then choose Create.