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"
|
2021-07-23 09:43:16 +00:00
|
|
|
values = ["debian-10-amd64-*"]
|
2017-11-30 15:27:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
filter {
|
|
|
|
name = "virtualization-type"
|
|
|
|
values = ["hvm"]
|
|
|
|
}
|
|
|
|
|
2021-07-23 09:43:16 +00:00
|
|
|
owners = ["136693071363"] # Debian-10
|
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.
|
|
|
|
*/
|
2021-07-23 09:43:16 +00:00
|
|
|
variable "aws_bastion_num" {
|
|
|
|
description = "Number of Bastion Nodes"
|
|
|
|
}
|
|
|
|
|
2017-03-01 17:25:58 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-07-23 09:43:16 +00:00
|
|
|
variable "aws_kube_master_disk_size" {
|
|
|
|
description = "Disk size for Kubernetes Master Nodes (in GiB)"
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-07-23 09:43:16 +00:00
|
|
|
variable "aws_etcd_disk_size" {
|
|
|
|
description = "Disk size for etcd Nodes (in GiB)"
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-07-23 09:43:16 +00:00
|
|
|
variable "aws_kube_worker_disk_size" {
|
|
|
|
description = "Disk size for Kubernetes Worker Nodes (in GiB)"
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2022-02-25 07:53:54 +00:00
|
|
|
* AWS NLB Settings
|
2017-03-01 17:25:58 +00:00
|
|
|
*
|
|
|
|
*/
|
2022-02-25 07:53:54 +00:00
|
|
|
variable "aws_nlb_api_port" {
|
|
|
|
description = "Port for AWS NLB"
|
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"
|
|
|
|
}
|