mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
CreateUser dropped the Engine parameter and userXml emitted a literal redis, so a user created with Engine=valkey read back as redis on CreateUser, DescribeUsers, ModifyUser and DeleteUser - the issue's aws_elasticache_user resource plans a diff on every run and never converges. Store the engine on ElastiCacheUser, defaulting a missing value to redis to keep the previous behavior for callers that omit it. Accept Engine on ModifyUser too, which AWS models as an optional parameter, validating it before the first setter so a rejected request leaves the user untouched - the storage backends hand back the live stored object, so a mutation applied before validation would survive the 400. Honor the documented Engine filter on DescribeUsers, which means something now that users can differ by engine. Values are validated redis/valkey case-insensitively, matching the handler's existing memcached check. MinimumEngineVersion stays at 6.0, the only value AWS documents for the element. Users persisted before the engine field existed deserialize with the redis default. Closes #2290