Files
fleet-terraform/byo-vpc/versions.tf
T
Michal HrubyandRobert Fairburn 07fdf37d4b Add Valkey support for ElastiCache (#158)
## Summary

This PR adds support for AWS ElastiCache Valkey as an alternative to
Redis, addressing #44.

## Changes

- **Upgrade cloudposse module**: Updated
`cloudposse/elasticache-redis/aws` from v0.53.0 to >= 1.9.1
- **Add engine parameter**: New `engine` field in `redis_config`
supports both `redis` (default) and `valkey`
- **AWS provider constraint**: Added requirement for AWS provider >=
5.73.0 in `byo-vpc/versions.tf`
- **Documentation**: Added Valkey configuration examples to README

## Valkey Benefits

Valkey is an open-source, Redis-compatible in-memory data store. AWS
recommends using Valkey for cost savings.

## Usage

To use Valkey instead of Redis:

```hcl
redis_config = {
  engine         = "valkey"
  engine_version = "7.2"
  family         = "valkey7"
}
```

## Backwards Compatibility

- Default engine remains `redis` - existing deployments continue to work
unchanged
- Users can opt-in to Valkey by setting `engine = "valkey"

Note that this was mostly AI-generated.

Closes #44

---------

Co-authored-by: Robert Fairburn <8029478+rfairburn@users.noreply.github.com>
2026-01-09 02:49:14 -06:00

12 lines
153 B
Terraform

terraform {
required_version = ">= 1.3.8"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.73.0"
}
}
}