Skip to content

fryce/elasticache-redis-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

elasticache-redis-deployment

Create Multiple AWS Elasticache Redis Clusters With Terrafrom

Prerequisites

Mandatory variables in terrafrom.tfvars

#################
# Vars
#################
aws_credential          = ""                                 # Cred position, e.g. "/root/.aws/credentials"
aws_profile             = ""                                 # AWS profile name
aws_region              = ""                                 # aws region name
vpc_id                  = ""                                 # existing vpc id
redis_sg_ingress_cidr   = ""                                 # cidr open for inbound port 6379
redis_sg_egress_cidr    = ""                                 # cidr open for outbound
elasticache_list        = []                                 # list of Elasticache Redis attributes
 e.g.- name                        = "cluster-1"
     - instance_type               = "cache.t3.micro"
     - number_node                 = 3
     - engine_version              = "5.0.5"
     - subnet_group_name           = "test"
     - parameter_group_name        = "default.redis5.0"
     - maintenance_window          = "sat:18:00-sat:19:00"
     - snapshot_window             = "17:00-18:00"
     - snapshot_retention_limit    = 2

Run Terrafrom

  • cd to the terraform directory and make sure you have all 3 files:
main.tf
vars.tf
terraform.tfvars
  • Run the following commands:
terrafrom init
terrafrom plan
terrafrom apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages