variables.tf 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //-------------For terrafrom
  2. variable "cloud_id" {
  3. default = "your cloud id" #yc config get cloud-id
  4. }
  5. //------------VPC List
  6. //--VPC 1
  7. variable "vpc_name_1" {
  8. default = "servers" #choose your name for vpc-1
  9. }
  10. variable "subnet-a_vpc_1" {
  11. default = "10.160.1.0/24" #change if you need
  12. }
  13. variable "subnet-b_vpc_1" {
  14. default = "10.161.1.0/24" #change if you need
  15. }
  16. //--VPC 2
  17. variable "vpc_name_2" {
  18. default = "database" #choose your name for vpc-2
  19. }
  20. variable "subnet-a_vpc_2" {
  21. default = "10.160.2.0/24" #change if you need
  22. }
  23. variable "subnet-b_vpc_2" {
  24. default = "10.161.2.0/24" #change if you need
  25. }
  26. //--VPC 3
  27. variable "vpc_name_3" {
  28. default = "transit" #choose your name for vpc-transit
  29. }
  30. variable "subnet-a_vpc_3" {
  31. default = "172.16.1.0/24" #change if you need
  32. }
  33. variable "subnet-b_vpc_3" {
  34. default = "172.16.2.0/24" #change if you need
  35. }
  36. //--VPC 4
  37. variable "vpc_name_4" {
  38. default = "mgmt" #choose your name for mgmt
  39. }
  40. variable "subnet-a_vpc_4" {
  41. default = "192.168.1.0/24" #change if you need
  42. }
  43. variable "subnet-b_vpc_4" {
  44. default = "192.168.2.0/24" #change if you need
  45. }
  46. //-----------Fake VPC List (for the future because of limit "cant add interfaces after vm creation")
  47. variable "vpc_name_5" {
  48. default = "vpc5" #choose your name for vpc
  49. }
  50. variable "subnet-a_vpc_5" {
  51. default = "10.5.1.0/24" #change if you need
  52. }
  53. variable "subnet-b_vpc_5" {
  54. default = "10.5.2.0/24" #change if you need
  55. }
  56. //--
  57. variable "vpc_name_6" {
  58. default = "vpc6" #choose your name for vpc
  59. }
  60. variable "subnet-a_vpc_6" {
  61. default = "10.6.1.0/24" #change if you need
  62. }
  63. variable "subnet-b_vpc_6" {
  64. default = "10.6.2.0/24" #change if you need
  65. }
  66. //--
  67. variable "vpc_name_7" {
  68. default = "vpc7" #choose your name for vpc
  69. }
  70. variable "subnet-a_vpc_7" {
  71. default = "10.7.1.0/24" #change if you need
  72. }
  73. variable "subnet-b_vpc_7" {
  74. default = "10.7.2.0/24" #change if you need
  75. }
  76. //--
  77. variable "vpc_name_8" {
  78. default = "vpc8" #choose your name for vpc
  79. }
  80. variable "subnet-a_vpc_8" {
  81. default = "10.8.1.0/24" #change if you need
  82. }
  83. variable "subnet-b_vpc_8" {
  84. default = "10.8.2.0/24" #change if you need
  85. }
  86. //--