variables.tf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. variable "name" {
  2. description = "Name for the EKS cluster and related resources."
  3. type = string
  4. default = "example-eks"
  5. }
  6. variable "region" {
  7. description = "AWS region to deploy into."
  8. type = string
  9. default = "us-east-1"
  10. }
  11. variable "kubernetes_version" {
  12. description = "EKS Kubernetes version."
  13. type = string
  14. default = "1.35"
  15. }
  16. variable "node_instance_types" {
  17. description = "Instance types for the default managed node group."
  18. type = list(string)
  19. default = ["t3.large"]
  20. }
  21. variable "node_desired_size" {
  22. description = "Desired node count."
  23. type = number
  24. default = 2
  25. }
  26. variable "node_min_size" {
  27. description = "Minimum node count."
  28. type = number
  29. default = 2
  30. }
  31. variable "node_max_size" {
  32. description = "Maximum node count."
  33. type = number
  34. default = 4
  35. }
  36. variable "cluster_admin_principal_arns" {
  37. description = "Optional IAM principal ARNs to grant cluster-admin access."
  38. type = list(string)
  39. default = []
  40. }
  41. variable "tags" {
  42. description = "Tags applied to resources."
  43. type = map(string)
  44. default = {
  45. Example = "basic"
  46. }
  47. }