variables.j 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {% import 'variables.include' as var %}
  2. # User Settings
  3. # -------------
  4. # These MUST be configured
  5. variable "AWS-Key-Pair-Name" {
  6. description = "Name of the keypair in AWS"
  7. type = "string"
  8. default = "{{ var.AWS_Key_Pair_Name }}"
  9. }
  10. variable "Private-Key-File" {
  11. description = "The name of the file containing your private key"
  12. type = "string"
  13. default = "{{ var.Private_Key_File }}"
  14. }
  15. variable "Domain-Name" {
  16. description = "Your domain name (hosted in Route53)"
  17. type = "string"
  18. default = "{{ var.Domain_Name }}"
  19. }
  20. variable "Domain-Zone-ID" {
  21. description = "The Zone ID of the Domain-Name in Route53"
  22. type = "string"
  23. default = "{{ var.Domain_Zone_ID }}"
  24. }
  25. variable "Trusted-CIDR" {
  26. description = "Trusted source addresses in CIDR notation."
  27. type = "list"
  28. default = {{ var.Trusted_CIDR }}
  29. }
  30. # Common Settings
  31. # ---------------
  32. # You may wish to customize these, but defaults
  33. # will usually work.
  34. variable "region" {
  35. description = "Which AWS region do you wish to deploy to?"
  36. type = "string"
  37. default = "{{ var.AWS_Region }}"
  38. }
  39. variable "VPC-Subnet" {
  40. description = "The full subnet for your VPC (to be split into 4 subnets)"
  41. type = "string"
  42. default = "10.45.0.0/16"
  43. }
  44. variable "Public-Subnet-A" {
  45. description = "The CIDR for the PubA subnet. Must be a subnet of VPC-Subnet"
  46. type = "string"
  47. default = "10.45.0.0/24"
  48. }
  49. variable "Public-Subnet-B" {
  50. description = "The CIDR for the PubA subnet. Must be a subnet of VPC-Subnet"
  51. type = "string"
  52. default = "10.45.1.0/24"
  53. }
  54. variable "Private-Subnet-A" {
  55. description = "The CIDR for the PubA subnet. Must be a subnet of VPC-Subnet"
  56. type = "string"
  57. default = "10.45.128.0/24"
  58. }
  59. variable "Private-Subnet-B" {
  60. description = "The CIDR for the PubA subnet. Must be a subnet of VPC-Subnet"
  61. type = "string"
  62. default = "10.45.129.0/24"
  63. }
  64. # Performance Settings
  65. # --------------------
  66. # Defaults are probably fine, but if you want to change
  67. # your performance, here's where you can tune.
  68. variable "Instance-Type" {
  69. description = "What size instances do you want to deploy?"
  70. type = "string"
  71. default = "t2.micro"
  72. }
  73. variable "EBS-Optimized" {
  74. description = "Should instances be deployed as EBS optimized?"
  75. type = "string"
  76. default = false
  77. }
  78. variable "Swap-Volume-Size" {
  79. description = "How much swap do you need?"
  80. type = "string"
  81. default = 2
  82. }
  83. variable "Swap-Volume-Type" {
  84. description = "Type of storage for the swap volume."
  85. type = "string"
  86. default = "gp2"
  87. }
  88. variable "Default-Volume-Type" {
  89. description = "Type of storage for the default volumes."
  90. type = "string"
  91. default = "gp2"
  92. }