Skip to content

Expands elasticache resource to handle ReplicationGroups and Serverless - #616

Draft
cmattoon wants to merge 5 commits into
k1LoW:mainfrom
cmattoon:feature-valkey
Draft

Expands elasticache resource to handle ReplicationGroups and Serverless#616
cmattoon wants to merge 5 commits into
k1LoW:mainfrom
cmattoon:feature-valkey

Conversation

@cmattoon

Copy link
Copy Markdown

While writing some tests, I noticed elasticache('cluster-name') only found one of our instances that was configured in cluster mode, but missed the rest of the resources.

I wasn't sure whether to add other resources or modify this one, but I modified the current one to meet my expectations that elasticache would find my ElastiCache stuff. If it makes more sense to create separate resources, I can refactor.

I'm not a Ruby guy, so I had Cursor+gpt-5.2-codex help me out. I checked through the files, they look sane, and they work on my machine, but I'm not a Ruby guy, so I'm not entirely certain it's the best it can be.

I did ask it to double-check the code for safety issues and consistency with the rest of the codebase, and the main suggestion was to reduce usage of rescue StandardError to avoid swallowing exceptions, but I left it as-is for consistency.

@cmattoon
cmattoon marked this pull request as draft February 12, 2026 19:42
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

Successfully merging this pull request may close these issues.

1 participant