This template creates an Amazon ElastiCache replication group with two nodes. The replication group uses Redis as the engine and is configured with automatic failover enabled. It also specifies a preferred maintenance window and snapshot retention limit.

CloudFormation Template