variables.tf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 "netrules" {
  46. type = list
  47. default = [
  48. {
  49. type = "ingress"
  50. from_port = "22"
  51. to_port = "22"
  52. protocol = "tcp"
  53. cidr = ["10.0.0.0/8"]
  54. },
  55. {
  56. type = "egress"
  57. from_port = "0"
  58. to_port = "65535"
  59. protocol = "tcp"
  60. cidr = ["0.0.0.0/0"]
  61. },
  62. {
  63. type = "egress"
  64. from_port = "0"
  65. to_port = "65535"
  66. protocol = "udp"
  67. cidr = ["0.0.0.0/0"]
  68. }
  69. ]
  70. }