Skip to content

icloudops/terraform-aws-ha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-ha

Implement AWS HighAvailabe architecture using terraform. Alt text

Example Usage

module "ha" {
  source  = "github.com/icloudops/terraform-aws-ha?ref=v1.0.0"
  project_name = "ProjectA"
  vpc_cidr = "10.0.0.0"
  region = "eu-west-1"
}

The following arguments are optional:

  1. region: aws target region default = "eu-central-1"

  2. project_name: default = "HighAvailable"

  3. vpc_cidr: default 10.0.0.0/16

  4. public_cidr : type is list and it must contain 2 record for 2 subnets. default =["10.0.0.0/24","10.0.1.0/24"]

  5. private_cidr: type is list and default values is default = ["10.0.2.0/24","10.0.3.0/24"]

  6. ebs_size: machine disk size, default = "20"

  7. instance_type: ec2 machine type, default = "t3.medium"

  8. max_size: autoscale max size for autoscale, default = 4

  9. min_size: min size for autoscale, default = 2

  10. desired_capacity: desired capacity for autoscale, default = 2