variables.tf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. variable "profile" {
  2. description = "The AWS profile to use"
  3. }
  4. variable "region" {
  5. description = "The AWS region to run in"
  6. }
  7. variable "common-tags" {
  8. type = map(string)
  9. description = "Tags that go everywhere"
  10. }
  11. variable "open-nets" {
  12. type = list
  13. description = "CIDRs that will have access to everything"
  14. default = []
  15. }
  16. variable "vpc-cidr" {
  17. description = "The CIDR of the VPC"
  18. }
  19. variable "vpc-id" {
  20. description = "The ID of the VPC"
  21. }
  22. variable "vpc-name" {
  23. description = "The Name of the VPC"
  24. }
  25. variable "vpc-subnets" {
  26. type = list
  27. description = "The list of subnets available to the VPC"
  28. }
  29. variable "vpc-azs" {
  30. type = list
  31. description = "The ID of the VPC"
  32. }
  33. variable "data-node-count" {
  34. description = "The number of RE data nodes"
  35. default = 3
  36. }
  37. variable "re-instance-type" {
  38. description = "The size of instance to run"
  39. default = "t2.2xlarge"
  40. }
  41. variable "re-volume-size" {
  42. description = "The size of the two volumes to attach"
  43. default = "150"
  44. }
  45. variable "enable-flash" {
  46. description = "Enable Flash Devices"
  47. default = false
  48. }
  49. variable "flash-iops" {
  50. description = "Enable Flash IOPS"
  51. default = "100"
  52. }
  53. variable "netrules" {
  54. type = list
  55. default = [
  56. {
  57. type = "ingress"
  58. from_port = "22"
  59. to_port = "22"
  60. protocol = "tcp"
  61. cidr = ["10.0.0.0/8"]
  62. },
  63. {
  64. type = "egress"
  65. from_port = "0"
  66. to_port = "65535"
  67. protocol = "tcp"
  68. cidr = ["0.0.0.0/0"]
  69. },
  70. {
  71. type = "egress"
  72. from_port = "0"
  73. to_port = "65535"
  74. protocol = "udp"
  75. cidr = ["0.0.0.0/0"]
  76. }
  77. ]
  78. }