Skip to content

User

Source: src/AWS/MemoryDB/User.ts

A MemoryDB user — an RBAC identity that authenticates to a cluster and is granted permissions through an access string. Users are grouped into ACLs, which are attached to clusters.

Users are free and provision quickly. Passwords are write-only.

Password User with Full Access

const user = yield* User("AppUser", {
authenticationMode: { type: "password", passwords: [appPassword] },
accessString: "on ~* +@all",
});

IAM-Authenticated User

const user = yield* User("IamUser", {
userName: "iam-app-user",
authenticationMode: { type: "iam" },
accessString: "on ~* +@all",
});