Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dominodatalab/terraform-aws-rancher

Terraform module which creates an HA deployment of Rancher inside AWS
https://github.com/dominodatalab/terraform-aws-rancher

aws rancher terraform

Last synced: about 2 months ago
JSON representation

Terraform module which creates an HA deployment of Rancher inside AWS

Awesome Lists containing this project

README

        

# terraform-aws-rancher

Terraform module which creates an HA deployment of Rancher inside AWS using [RanchHand](https://github.com/dominodatalab/ranchhand).

## Usage

### Create a Rancher cluster with public LB and instances

_Note:_ public IP support is currently unsupported and deprecated.

```hcl
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

```hcl
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

```hcl
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.