Skip to content

MemoryDB

CloudMock emulates Amazon MemoryDB for Redis, supporting clusters, ACLs, users, subnet groups, parameter groups, snapshots, and tagging.

OperationStatusNotes
CreateClusterSupportedCreates a MemoryDB cluster
DescribeClustersSupportedLists clusters
DeleteClusterSupportedDeletes a cluster
UpdateClusterSupportedUpdates cluster configuration
CreateACLSupportedCreates an ACL
DescribeACLsSupportedLists ACLs
DeleteACLSupportedDeletes an ACL
UpdateACLSupportedUpdates an ACL
CreateUserSupportedCreates a user
DescribeUsersSupportedLists users
DeleteUserSupportedDeletes a user
UpdateUserSupportedUpdates a user
CreateSubnetGroupSupportedCreates a subnet group
DescribeSubnetGroupsSupportedLists subnet groups
DeleteSubnetGroupSupportedDeletes a subnet group
CreateParameterGroupSupportedCreates a parameter group
DescribeParameterGroupsSupportedLists parameter groups
DeleteParameterGroupSupportedDeletes a parameter group
CreateSnapshotSupportedCreates a snapshot
DescribeSnapshotsSupportedLists snapshots
DeleteSnapshotSupportedDeletes a snapshot
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsSupportedLists tags for a resource
import { MemoryDBClient, CreateClusterCommand } from '@aws-sdk/client-memorydb';
const client = new MemoryDBClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateClusterCommand({
ClusterName: 'my-memorydb',
NodeType: 'db.r6g.large',
ACLName: 'open-access',
}));
import boto3
client = boto3.client('memorydb',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_cluster(
ClusterName='my-memorydb',
NodeType='db.r6g.large',
ACLName='open-access')
cloudmock.yml
services:
memorydb:
enabled: true
  • No actual Redis engine is provisioned
  • Cluster endpoints are generated but not functional
  • Snapshots are metadata-only