vars.tf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Required Parameters
  2. variable "hostname" {
  3. description = "Short name for the DNS entry."
  4. type = string
  5. }
  6. variable "subnets" {
  7. description = "Subnets for the alb. Should probably be one of var.public_subnets or var.private_subnets"
  8. type = list(string)
  9. }
  10. variable "target_count" {
  11. description = "Number of target servers."
  12. type = number
  13. }
  14. variable "target_servers" {
  15. description = "List of target server IDs"
  16. type = list(string)
  17. }
  18. variable "server_security_group" {
  19. description = "The security group on the server. This module will add rules to allow communication to/from the ALB"
  20. type = string
  21. }
  22. # Optional Parameters
  23. variable "server_port" {
  24. description = "Destination port on server for ALB"
  25. type = number
  26. default = 443
  27. }
  28. variable "server_protocol" {
  29. description = "Destination protocol (HTTP/HTTPS)"
  30. type = string
  31. default = "HTTPS"
  32. }
  33. variable "health_check_path" {
  34. description = "Path for health check"
  35. type = string
  36. default = "/"
  37. }
  38. variable "inbound_cidrs" {
  39. description = "List of CIDRs allowed access."
  40. type = list(string)
  41. default = ["0.0.0.0/0"]
  42. }
  43. variable "sticky_sessions" {
  44. description = "True if you wish to use sticky session control."
  45. type = bool
  46. default = true
  47. }
  48. # Inherited Parameters
  49. variable "dns_info" { type = map(any) }
  50. variable "environment" { type = string }
  51. variable "tags" { type = map(any) }
  52. variable "vpc_id" { type = string }