aws-docker-swarm
dzangolab/aws-docker-swarm/dzangolab
AWS EC2 Docker Swarm Cluster This terraform module creates a Docker Swarm cluster using AWS EC2 instances. It optionnally creates a gluster cluster and/or enables an EFS. Providers | Name | Version | |------|---------| | aws | ~> 2.23 | | null | n/a | | template | n/a | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| | ami | Ubuntu Server 18.04 LTS AMI | string | "ami-09a4a9ce71ff3f20b" | no | | availability\_zone | The availability zone in which to create EC2 instances | string | "ap-southeast-1a" | no | | connect\_via\_private\_address | Whether connection to the servers should be made via the private ip address (true) or the public ip address (false) | bool | false | no | | connection\_timeout | Timeout for connection to servers
| Name | Type | Description | Default |
|---|---|---|---|
| swarm_name | string | required | |
| eip_allocation_id | string | The allocation ID of the Elastic IP address | required |
| key_pair_name | string | The name for the key pair | required |
| env | string | The environment of the current deployment | required |
| worker_volume_delete_on_termination | string | Whether root volume should be destroyed on worker instance termination | true |
| gluster_volume_size | string | Size of the gluster volume in gibibytes (GiB) | 1 |
| private_key_path | string | SSH private key path for ssh connection. | "~/.ssh/id_rsa" |
| manager_instance_type | string | Manager instance type | "t3a.large" |
| worker_instance_type | string | Worker instance type | "t3a.large" |
| manager_volume_type | string | The type of root volume of manager intances | "gp2" |
| enable_gluster | string | Set to true in order to enable gluster | false |
| swarm_manager_name | string | Name to use for naming manager nodes | "manager" |
| swarm_worker_count | string | Number of worker nodes | 1 |
| ami | string | Ubuntu Server 18.04 LTS AMI | "ami-09a4a9ce71ff3f20b" |
| manager_volume_size | string | The size of root volume of manager instance in gibibytes (GiB). | 8 |
| swarm_worker_name | string | Name to use for naming worker nodes | "worker" |
| vpc_cidr | string | "192.168.0.0/24" | |
| availability_zone | string | The availability zone in which to create EC2 instances | "ap-southeast-1a" |
| manager_volume_delete_on_termination | string | Whether root volume should be destroyed on manager instance termination | true |
| subnet_main_cidr | string | "192.168.0.0/24" | |
| worker_volume_size | string | The size of root volume of worker instance in gibibytes (GiB). | 8 |
| connect_via_private_address | string | Whether connection to the servers should be made via the private ip address (tru | false |
| ssh_public_keys | string | SSH public keys to add to instances | "" |
| ssh_user | string | User for logging into nodes (ansible) | "ubuntu" |
efs_dns_name — DNS name of the provisioned AWS EFSswarm_manager_public_ips — The manager nodes public ipv4 adressesswarm_manager_private_ips — The manager nodes private ipv4 adressesswarm_worker_public_ips — The worker nodes public ipv4 adressesswarm_worker_private_ips — The worker nodes private ipv4 adressesansible_inventory — Content of Ansible inventory