fix(terraform): AWS
[csit.git] / fdio.infra.terraform / terraform-aws-3n-aws-c5n / variables.tf
1 variable "vault-name" {
2   default = "dynamic-aws-creds-vault-fdio-csit-jenkins"
3 }
4
5 variable "region" {
6   description = "AWS Region."
7   type        = string
8   default     = "eu-central-1"
9 }
10
11 variable "resource_prefix" {
12   description = "Resources name prefix."
13   type        = string
14   default     = "csit-2n-aws-c5n"
15 }
16
17 variable "testbed_name" {
18   description = "Testbed name."
19   type        = string
20   default     = "testbed1"
21 }
22
23 # Variables for Private Key
24 variable "private_key_algorithm" {
25   description = "The name of the algorithm to use for the key."
26   type        = string
27   default     = "ED25519"
28
29 # Variables for Placement Group
30 variable "placement_group_strategy" {
31   description = "The placement strategy. Can be cluster, partition or spread."
32   type        = string
33   default     = "cluster"
34 }
35
36 # Variables for Instance
37 variable "tg_ami" {
38   description = "AMI to use for the instance."
39   type        = string
40   default     = "ami-01d1d62914ef00b25"
41 }
42
43 variable "tg_associate_public_ip_address" {
44   description = "Whether to associate a public IP address with an instance in a VPC."
45   type        = bool
46   default     = true
47 }
48
49 variable "tg_instance_initiated_shutdown_behavior" {
50   description = "Shutdown behavior for the instance."
51   type        = string
52   default     = "terminate"
53 }
54
55 variable "tg_instance_type" {
56   description = "The instance type to use for the instance."
57   type        = string
58   default     = "c5n.4xlarge"
59 }
60
61 variable "tg_private_ip" {
62   description = "Private IP address to associate with the instance in a VPC."
63   type        = string
64   default     = "192.168.0.10"
65 }
66
67 variable "tg_source_dest_check" {
68   description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
69   type        = bool
70   default     = false
71 }
72
73 variable "sut1_ami" {
74   description = "AMI to use for the instance."
75   type        = string
76   default     = "ami-0bfdf32a014984d8a"
77 }
78
79 variable "sut1_associate_public_ip_address" {
80   description = "Whether to associate a public IP address with an instance in a VPC."
81   type        = bool
82   default     = true
83 }
84
85 variable "sut1_instance_initiated_shutdown_behavior" {
86   description = "Shutdown behavior for the instance."
87   type        = string
88   default     = "terminate"
89 }
90
91 variable "sut1_instance_type" {
92   description = "The instance type to use for the instance."
93   type        = string
94   default     = "c5n.4xlarge"
95 }
96
97 variable "sut1_private_ip" {
98   description = "Private IP address to associate with the instance in a VPC."
99   type        = string
100   default     = "192.168.0.11"
101 }
102
103 variable "sut1_source_dest_check" {
104   description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
105   type        = bool
106   default     = false
107 }
108
109 variable "sut2_ami" {
110   description = "AMI to use for the instance."
111   type        = string
112   default     = "ami-05ea90e57d2df4368"
113 }
114
115 variable "sut2_associate_public_ip_address" {
116   description = "Whether to associate a public IP address with an instance in a VPC."
117   type        = bool
118   default     = true
119 }
120
121 variable "sut2_instance_initiated_shutdown_behavior" {
122   description = "Shutdown behavior for the instance."
123   type        = string
124   default     = "terminate"
125 }
126
127 variable "sut2_instance_type" {
128   description = "The instance type to use for the instance."
129   type        = string
130   default     = "c5n.4xlarge"
131 }
132
133 variable "sut2_private_ip" {
134   description = "Private IP address to associate with the instance in a VPC."
135   type        = string
136   default     = "192.168.0.12"
137 }
138
139 variable "sut2_source_dest_check" {
140   description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
141   type        = bool
142   default     = false
143 }
144
145 # Variables for Network Interface
146 variable "tg_if1_private_ip" {
147   description = "List of private IPs to assign to the ENI without regard to order."
148   type        = string
149   default     = "192.168.10.254"
150 }
151
152 variable "tg_if2_private_ip" {
153   description = "List of private IPs to assign to the ENI without regard to order."
154   type        = string
155   default     = "192.168.20.254"
156 }
157
158 variable "destination_cidr_block_tg_if1" {
159   description = "The destination CIDR block."
160   type        = string
161   default     = "10.0.0.0/24"
162 }
163
164 variable "destination_cidr_block_tg_if2" {
165   description = "The destination CIDR block."
166   type        = string
167   default     = "20.0.0.0/24"
168 }
169
170 variable "sut1_if1_private_ip" {
171   description = "List of private IPs to assign to the ENI without regard to order."
172   type        = string
173   default     = "192.168.10.11"
174 }
175
176 variable "sut1_if2_private_ip" {
177   description = "List of private IPs to assign to the ENI without regard to order."
178   type        = string
179   default     = "200.0.0.101"
180 }
181
182 variable "sut2_if1_private_ip" {
183   description = "List of private IPs to assign to the ENI without regard to order."
184   type        = string
185   default     = "200.0.0.102"
186 }
187
188 variable "sut2_if2_private_ip" {
189   description = "List of private IPs to assign to the ENI without regard to order."
190   type        = string
191   default     = "192.168.20.11"
192 }
193
194 # Variables for Null Resource
195 variable "first_run_commands" {
196   description = "List of private IPs to assign to the ENI without regard to order."
197   type        = list(string)
198   default = [
199     "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
200     "sudo systemctl restart sshd",
201     "sudo useradd --create-home -s /bin/bash provisionuser",
202     "echo 'provisionuser:Csit1234' | sudo chpasswd",
203     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
204     "sudo useradd --create-home -s /bin/bash testuser",
205     "echo 'testuser:Csit1234' | sudo chpasswd",
206     "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"
207   ]
208 }
209
210 # Variables for Null Resource
211 variable "ansible_topology_path" {
212   description = "Ansible topology path."
213   type        = string
214   default     = "../../fdio.infra.ansible/cloud_topology.yaml"
215 }