module "songwhip_api_redis" {
  source = "git@github.com:theorchard/terraform-elasticache.git//?ref=3.1.1"

  providers = {
    aws.dns = aws
  }

  application_family = var.application_family
  environment        = var.environment
  service_name       = var.service_name

  vpc_id                     = module.vpc_info.vpc_id
  route53_zone_id            = "Z0134392105296KJ8C5A8"
  cache_engine               = "redis"
  redis_engine_version       = "7.1"
  cache_parameter_group_name = "default.redis7"
  cache_node_type            = "cache.t4g.small"
  cache_node_count           = 2
  cache_subnet_group_name    = "${var.environment}-elasticache-subnet-group"
}
