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

  providers = {
    aws.dns = aws.networking
  }

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

  vpc_id                         = module.vpc_info.vpc_id
  route53_zone_id                = "Z04991872X4ZB2H2NYTU9"
  cache_engine                   = "redis"
  redis_engine_version           = "7.0"
  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"
  additional_cidr_blocks_enabled = true
}
