Skip to content

For Valkey engine version 7

Description

For Valkey engine version 7.2 onwards and Redis OSS 6.0 to 7.1: Creates a user. For more information, see Using Role Based Access Control (RBAC).

Usage

elasticache_create_user(UserId, UserName, Engine, Passwords,
  AccessString, NoPasswordRequired, Tags, AuthenticationMode)

Arguments

  • UserId

    [required] The ID of the user. This value is stored as a lowercase string.

  • UserName

    [required] The username of the user.

  • Engine

    [required] The options are valkey or redis.

  • Passwords

    Passwords used for this user. You can create up to two passwords for each user.

  • AccessString

    [required] Access permissions string used for this user.

  • NoPasswordRequired

    Indicates a password is not required for this user.

  • Tags

    A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

  • AuthenticationMode

    Specifies how to authenticate the user.

Value

A list with the following syntax:

list(
  UserId = "string",
  UserName = "string",
  Status = "string",
  Engine = "string",
  MinimumEngineVersion = "string",
  AccessString = "string",
  UserGroupIds = list(
    "string"
  ),
  Authentication = list(
    Type = "password"|"no-password"|"iam",
    PasswordCount = 123
  ),
  ARN = "string"
)

Request syntax

svc$create_user(
  UserId = "string",
  UserName = "string",
  Engine = "string",
  Passwords = list(
    "string"
  ),
  AccessString = "string",
  NoPasswordRequired = TRUE|FALSE,
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  AuthenticationMode = list(
    Type = "password"|"no-password-required"|"iam",
    Passwords = list(
      "string"
    )
  )
)