2017-03-01 17:25:58 +00:00
|
|
|
variable "AWS_ACCESS_KEY_ID" {
|
|
|
|
description = "AWS Access Key"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "AWS_SECRET_ACCESS_KEY" {
|
|
|
|
description = "AWS Secret Key"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "AWS_SSH_KEY_NAME" {
|
|
|
|
description = "Name of the SSH keypair to use in AWS."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "AWS_DEFAULT_REGION" {
|
|
|
|
description = "AWS Region"
|
|
|
|
}
|
|
|
|
|
|
|
|
//General Cluster Settings
|
|
|
|
|
|
|
|
variable "aws_cluster_name" {
|
|
|
|
description = "Name of AWS Cluster"
|
|
|
|
}
|
|
|
|
|
2017-11-30 15:27:52 +00:00
|
|
|
data "aws_ami" "distro" {
|
|
|
|
most_recent = true
|
|
|
|
|
|
|
|
filter {
|
|
|
|
name = "name"
|
2020-08-28 09:28:53 +00:00
|
|
|
values = ["ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"]
|
2017-11-30 15:27:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
filter {
|
|
|
|
name = "virtualization-type"
|
|
|
|
values = ["hvm"]
|
|
|
|
}
|
|
|
|
|
2020-08-28 09:28:53 +00:00
|
|
|
owners = ["099720109477"] # Canonical
|
2017-11-30 15:27:52 +00:00
|
|
|
}
|
2017-03-01 17:25:58 +00:00
|
|
|
|
|
|
|
//AWS VPC Variables
|
|
|
|
|
|
|
|
variable "aws_vpc_cidr_block" {
|
|
|
|
description = "CIDR Block for VPC"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_cidr_subnets_private" {
|
2017-03-20 11:06:07 +00:00
|
|
|
description = "CIDR Blocks for private subnets in Availability Zones"
|
2020-12-23 13:08:26 +00:00
|
|
|
type = list(string)
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_cidr_subnets_public" {
|
2017-03-20 11:06:07 +00:00
|
|
|
description = "CIDR Blocks for public subnets in Availability Zones"
|
2020-12-23 13:08:26 +00:00
|
|
|
type = list(string)
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//AWS EC2 Settings
|
|
|
|
|
|
|
|
variable "aws_bastion_size" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "EC2 Instance Size of Bastion Host"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* AWS EC2 Settings
|
|
|
|
* The number should be divisable by the number of used
|
|
|
|
* AWS Availability Zones without an remainder.
|
|
|
|
*/
|
|
|
|
variable "aws_kube_master_num" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Number of Kubernetes Master Nodes"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_kube_master_size" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Instance size of Kube Master Nodes"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_etcd_num" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Number of etcd Nodes"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_etcd_size" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Instance size of etcd Nodes"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_kube_worker_num" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Number of Kubernetes Worker Nodes"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "aws_kube_worker_size" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Instance size of Kubernetes Worker Nodes"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* AWS ELB Settings
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
variable "aws_elb_api_port" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Port for AWS ELB"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "k8s_secure_api_port" {
|
2019-04-08 09:22:24 +00:00
|
|
|
description = "Secure Port of K8S API Server"
|
2017-03-01 17:25:58 +00:00
|
|
|
}
|
2017-04-12 13:11:39 +00:00
|
|
|
|
2017-10-18 10:44:32 +00:00
|
|
|
variable "default_tags" {
|
|
|
|
description = "Default tags for all resources"
|
2020-12-23 13:08:26 +00:00
|
|
|
type = map(string)
|
2017-10-18 10:44:32 +00:00
|
|
|
}
|
2017-12-04 15:41:35 +00:00
|
|
|
|
|
|
|
variable "inventory_file" {
|
|
|
|
description = "Where to store the generated inventory file"
|
|
|
|
}
|