Skip to content

Terraform module which creates an HA deployment of Rancher inside AWS

License

Notifications You must be signed in to change notification settings

dominodatalab/terraform-aws-rancher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-rancher

Terraform module which creates an HA deployment of Rancher inside AWS using RanchHand.

Usage

Create a Rancher cluster with public LB and instances

Note: public IP support is currently unsupported and deprecated.

module "rancher" {
  source   = "github.com/dominodatalab/terraform-aws-rancher"

  vpc_id         = "vpc-id"
  lb_cidr_blocks = ["0.0.0.0/0"]
  lb_subnet_ids  = ["public-subnet-id"]
  subnet_ids     = ["public-subnet-id"]
  ssh_key_name   = "domino-test"

  provisioner_cidr_block = "67.80.87.241/32" # e.g. your IP addr
}

Provision private instances through a bastion host

module "rancher" {
  source   = "github.com/dominodatalab/terraform-aws-rancher"

  vpc_id         = "vpc-id"
  lb_cidr_blocks = ["0.0.0.0/0"]
  lb_subnet_ids  = ["public-subnet-id"]
  subnet_ids     = ["private-subnet-id"]
  ssh_key_name   = "domino-test"

  ssh_proxy_user = "bastion"
  ssh_proxy_host = "bastion-ip-addr"
  ssh_key_path   = "~/.ssh/domino-test.pem"

  provisioner_security_group = "my-bastion-secgrp-id"
}

Create an internal LB

module "rancher" {
  source   = "github.com/dominodatalab/terraform-aws-rancher"

  vpc_id             = "vpc-id"
  internal_lb        = true
  lb_security_groups = ["custom-node-secgrp-id"]
  lb_subnet_ids      = ["private-subnet-id"]
  subnet_ids         = ["different-private-subnet-id"]
  ssh_key_name       = "domino-test"

  ssh_proxy_user = "bastion"
  ssh_proxy_host = "bastion-ip-addr"
  ssh_key_path   = "~/.ssh/domino-test.pem"

  provisioner_security_group = "my-bastion-secgrp-id"
}

Development

Please submit any feature enhancements, bug fixes, or ideas via pull requests or issues.

About

Terraform module which creates an HA deployment of Rancher inside AWS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages