ElastiCache

Guide for understanding and configuring an ElastiCache stack

The ElastiCache stack is an add-on AWS ElastiCache (Valkey) caching layer deployed into an existing network.

Variables

Variable NameTypeDescription
regionstring(Required) The region to deploy the ElastiCache replication groups — must match the data_subnets region.
namestring(Required) Replication groups are identified by <name>-<cache> (maximum 40 characters).
sizestring(Required) Plan size. Must be one of dev, micro, mini, small, medium, large, or xlarge.
↳devcache.t4g.micro
↳microcache.t4g.micro
↳minicache.t4g.micro
↳smallcache.t4g.medium
↳mediumcache.m7g.large
↳largecache.r7g.large
↳xlargecache.r7g.xlarge
data_subnetslist(string)(Required) Array of subnet IDs [primary, secondary]. May also be a reference to another stack’s output.
cacheslist(string)Optional. Names of the Valkey replication groups to create. Each name must contain only lowercase letters, digits, and hyphens, and cannot start or end with a hyphen. Defaults to ["volatile", "persistent"].
valkey_versionstringOptional. Valkey engine version. The major version selects the default parameter group. Defaults to "8.0".

Example:

{
  "type": "elasticache",
  "environment": "/v2/environments/tu8aovkn7waj",
  "service": "/v2/services/2tpkjj7e0b28",
  "name": "my-store",
  "variables": {
    "size": "medium",
    "region": "us-east-1",
    "data_subnets": "/v2/stacks/4d4d1d4koe12/outputs/data_subnets",
    "caches": [
      "volatile",
      "persistent"
    ]
  }
}

Outputs

Output nameDescription
valkey_endpointsMap of cache name to its primary endpoint address (e.g., volatile, persistent).
valkey_portThe port every Valkey cache listens on (6379).
Have questions not answered here? Contact Support to get more help.

Last modified on September 24, 2026