terraform/swarm_basic_aws/variable.tf
# Update minimum this with your AWS config
variable "vpc_id" {
description = "Vpc Id where to deploy the node of the simple swarm"
default = "vpc-4a50ae2d"
}
variable "subnet_id" {
description = "Subnet in the Vpc Id where to deploy the node of the simple swarm"
default = "subnet-09a73005"
}
variable "aws_region" {
description = "AWS region on which we will setup the swarm cluster"
default = "us-east-1"
}
variable "key_name" {
description = "Desired name of Keypair..."
default = "terraform_key" #OK "terraform_ec2_key"
}
# You could change all these but they default values are good fot that test
variable "ssh_user" {
description = "ssh user, depent on the distrubution instaled"
default = "ubuntu"
}
# master and manager settings
variable "instance_count_manager" {
description = "Number of instances to launch"
type = number
default = 1
}
variable "instance_type_manager" {
description = "Instance type"
default = "t3.large"
}
variable "name_manager" {
description = "Name to be used on all resources as prefix"
type = string
default = "swarm-manager"
}
# worker settings
variable "instance_count_worker" {
description = "Number of instances to launch"
type = number
default = 1
}
variable "instance_type_worker" {
description = "Instance type"
default = "t2.micro"
}
variable "name_worker" {
description = "Name to be used on all resources as prefix"
type = string
default = "swarm-worker"
}