Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ElastiCache] createUser should map engine to be lowercase #8520

Open
jflim opened this issue Jan 24, 2025 · 1 comment
Open

[ElastiCache] createUser should map engine to be lowercase #8520

jflim opened this issue Jan 24, 2025 · 1 comment

Comments

@jflim
Copy link
Contributor

jflim commented Jan 24, 2025

In boto3, I created two Elasticache Redis users and noticed that the engine value for users get stored in lowercase. May need to adapt moto to store the passed values in lowercase.

Create with lowercase

import boto3
client = boto3.client('elasticache')
client.create_user(UserId="user1", UserName="user1", Engine = "redis", AccessString = " on ~* +@all", AuthenticationMode = { 'Type': 'iam' },)

result:

{'UserId': 'user1', 'UserName': 'user1', 'Status': 'active', 'Engine': 'redis', ...}

Create with upper case

client.create_user(UserId="user2", UserName="user2", Engine = "Redis", AccessString = " on ~* +@all", AuthenticationMode = { 'Type': 'iam' },)

result:

{'UserId': 'user2', 'UserName': 'user2', 'Status': 'active', 'Engine': 'redis', ...}

Looking at the Elasticache User API docs, the values accepted are 'valkey' or 'redis'

@jflim jflim changed the title Elasticache: createUser should map engine to be lowercase [Elasticache] createUser should map engine to be lowercase Jan 24, 2025
@jflim jflim changed the title [Elasticache] createUser should map engine to be lowercase [ElastiCache] createUser should map engine to be lowercase Jan 24, 2025
@armichaud
Copy link
Contributor

This will be resolved by #8539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants