AWS EC2 Cluster Terraform module
Basic and dummy module to create a "cluster" of identical ec2 instances with the same subgroup,
on the same vpc and on the same subnet.
module "ec2_cluster" {
source = " ../modules/ec2-cluster"
name = " awesome-ec2-cluster"
instances_number = 10
vpc_id = " vpc-id-123"
subnet_id = " subnet-id-123"
instance_type = " t3.xlarge"
ebs_type = " gp2"
ami = " ami-09b9e380df60300c8"
}
Name
Version
terraform
>= 0.13.5
aws
>= 3.15.0
Name
Version
aws
>= 3.15.0
Name
Description
Type
Default
Required
ami
The AMI to install on the the instances
string
n/a
yes
ebs_type
The ebs type of the disks to associate with the instances
string
n/a
yes
instance_type
The instance type of the instances
string
n/a
yes
instances_number
The number of ec2 instances
number
n/a
yes
name
The name of the ec2 cluster
string
n/a
yes
subnet_id
The id of the subnet
string
n/a
yes
vpc_id
The id of the vpc
string
n/a
yes
Name
Description
sg_id
The id of the security group