You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
1.9 KiB

  1. variable "AWS_ACCESS_KEY_ID" {
  2. description = "AWS Access Key"
  3. }
  4. variable "AWS_SECRET_ACCESS_KEY" {
  5. description = "AWS Secret Key"
  6. }
  7. variable "AWS_SSH_KEY_NAME" {
  8. description = "Name of the SSH keypair to use in AWS."
  9. }
  10. variable "AWS_DEFAULT_REGION" {
  11. description = "AWS Region"
  12. }
  13. //General Cluster Settings
  14. variable "aws_cluster_name" {
  15. description = "Name of AWS Cluster"
  16. }
  17. data "aws_ami" "distro" {
  18. most_recent = true
  19. filter {
  20. name = "name"
  21. values = ["CoreOS-stable-*"]
  22. }
  23. filter {
  24. name = "virtualization-type"
  25. values = ["hvm"]
  26. }
  27. owners = ["595879546273"] #CoreOS
  28. }
  29. //AWS VPC Variables
  30. variable "aws_vpc_cidr_block" {
  31. description = "CIDR Block for VPC"
  32. }
  33. variable "aws_cidr_subnets_private" {
  34. description = "CIDR Blocks for private subnets in Availability Zones"
  35. type = "list"
  36. }
  37. variable "aws_cidr_subnets_public" {
  38. description = "CIDR Blocks for public subnets in Availability Zones"
  39. type = "list"
  40. }
  41. //AWS EC2 Settings
  42. variable "aws_bastion_size" {
  43. description = "EC2 Instance Size of Bastion Host"
  44. }
  45. /*
  46. * AWS EC2 Settings
  47. * The number should be divisable by the number of used
  48. * AWS Availability Zones without an remainder.
  49. */
  50. variable "aws_kube_master_num" {
  51. description = "Number of Kubernetes Master Nodes"
  52. }
  53. variable "aws_kube_master_size" {
  54. description = "Instance size of Kube Master Nodes"
  55. }
  56. variable "aws_etcd_num" {
  57. description = "Number of etcd Nodes"
  58. }
  59. variable "aws_etcd_size" {
  60. description = "Instance size of etcd Nodes"
  61. }
  62. variable "aws_kube_worker_num" {
  63. description = "Number of Kubernetes Worker Nodes"
  64. }
  65. variable "aws_kube_worker_size" {
  66. description = "Instance size of Kubernetes Worker Nodes"
  67. }
  68. /*
  69. * AWS ELB Settings
  70. *
  71. */
  72. variable "aws_elb_api_port" {
  73. description = "Port for AWS ELB"
  74. }
  75. variable "k8s_secure_api_port" {
  76. description = "Secure Port of K8S API Server"
  77. }
  78. variable "default_tags" {
  79. description = "Default tags for all resources"
  80. type = "map"
  81. }