variables.tf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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 "ssh-key" {
  26. description = "Set if the SSH key you wish to use does not match the VPC name"
  27. default = ""
  28. }
  29. variable "vpc-subnets" {
  30. type = list
  31. description = "The list of subnets available to the VPC"
  32. }
  33. variable "vpc-azs" {
  34. type = list
  35. description = "The ID of the VPC"
  36. }
  37. variable "data-node-count" {
  38. description = "The number of RE data nodes"
  39. default = 3
  40. }
  41. variable "re-instance-type" {
  42. description = "The size of instance to run"
  43. default = "t2.2xlarge"
  44. }
  45. variable "re-volume-size" {
  46. description = "The size of the two volumes to attach"
  47. default = "150"
  48. }
  49. variable "enable-flash" {
  50. description = "Enable Flash Devices"
  51. default = false
  52. }
  53. variable "flash-iops" {
  54. description = "Enable Flash IOPS"
  55. default = "100"
  56. }
  57. variable "netrules" {
  58. type = list
  59. default = [
  60. {
  61. type = "ingress"
  62. from_port = "22"
  63. to_port = "22"
  64. protocol = "tcp"
  65. cidr = ["10.0.0.0/8"]
  66. },
  67. {
  68. type = "egress"
  69. from_port = "0"
  70. to_port = "65535"
  71. protocol = "tcp"
  72. cidr = ["0.0.0.0/0"]
  73. },
  74. {
  75. type = "egress"
  76. from_port = "0"
  77. to_port = "65535"
  78. protocol = "udp"
  79. cidr = ["0.0.0.0/0"]
  80. }
  81. ]
  82. }