1 variable "vault-name" {
2 default = "dynamic-aws-creds-vault-fdio-csit-jenkins"
6 description = "AWS Region."
8 default = "eu-central-1"
11 variable "resource_prefix" {
12 description = "Resources name prefix."
14 default = "csit-2n-aws-c5n"
17 variable "testbed_name" {
18 description = "Testbed name."
23 # Variables for Private Key
24 variable "private_key_algorithm" {
25 description = "The name of the algorithm to use for the key."
30 variable "private_key_ecdsa_curve" {
31 description = "When algorithm is ECDSA, the name of the elliptic curve to use."
36 variable "private_key_rsa_bits" {
37 description = "When algorithm is RSA, the size of the generated RSA key in bits."
42 # Variables for Placement Group
43 variable "placement_group_strategy" {
44 description = "The placement strategy. Can be cluster, partition or spread."
49 # Variables for Instance
51 description = "AMI to use for the instance."
53 default = "ami-01d1d62914ef00b25"
56 variable "tg_associate_public_ip_address" {
57 description = "Whether to associate a public IP address with an instance in a VPC."
62 variable "tg_instance_initiated_shutdown_behavior" {
63 description = "Shutdown behavior for the instance."
68 variable "tg_instance_type" {
69 description = "The instance type to use for the instance."
71 default = "c5n.4xlarge"
74 variable "tg_private_ip" {
75 description = "Private IP address to associate with the instance in a VPC."
77 default = "192.168.0.10"
80 variable "tg_source_dest_check" {
81 description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
87 description = "AMI to use for the instance."
89 default = "ami-0bfdf32a014984d8a"
92 variable "sut1_associate_public_ip_address" {
93 description = "Whether to associate a public IP address with an instance in a VPC."
98 variable "sut1_instance_initiated_shutdown_behavior" {
99 description = "Shutdown behavior for the instance."
101 default = "terminate"
104 variable "sut1_instance_type" {
105 description = "The instance type to use for the instance."
107 default = "c5n.4xlarge"
110 variable "sut1_private_ip" {
111 description = "Private IP address to associate with the instance in a VPC."
113 default = "192.168.0.11"
116 variable "sut1_source_dest_check" {
117 description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
122 variable "sut2_ami" {
123 description = "AMI to use for the instance."
125 default = "ami-05ea90e57d2df4368"
128 variable "sut2_associate_public_ip_address" {
129 description = "Whether to associate a public IP address with an instance in a VPC."
134 variable "sut2_instance_initiated_shutdown_behavior" {
135 description = "Shutdown behavior for the instance."
137 default = "terminate"
140 variable "sut2_instance_type" {
141 description = "The instance type to use for the instance."
143 default = "c5n.4xlarge"
146 variable "sut2_private_ip" {
147 description = "Private IP address to associate with the instance in a VPC."
149 default = "192.168.0.12"
152 variable "sut2_source_dest_check" {
153 description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
158 # Variables for Network Interface
159 variable "tg_if1_private_ip" {
160 description = "List of private IPs to assign to the ENI without regard to order."
162 default = "192.168.10.254"
165 variable "tg_if2_private_ip" {
166 description = "List of private IPs to assign to the ENI without regard to order."
168 default = "192.168.20.254"
171 variable "destination_cidr_block_tg_if1" {
172 description = "The destination CIDR block."
174 default = "10.0.0.0/24"
177 variable "destination_cidr_block_tg_if2" {
178 description = "The destination CIDR block."
180 default = "20.0.0.0/24"
183 variable "sut1_if1_private_ip" {
184 description = "List of private IPs to assign to the ENI without regard to order."
186 default = "192.168.10.11"
189 variable "sut1_if2_private_ip" {
190 description = "List of private IPs to assign to the ENI without regard to order."
192 default = "200.0.0.101"
195 variable "sut2_if1_private_ip" {
196 description = "List of private IPs to assign to the ENI without regard to order."
198 default = "200.0.0.102"
201 variable "sut2_if2_private_ip" {
202 description = "List of private IPs to assign to the ENI without regard to order."
204 default = "192.168.20.11"
207 # Variables for Null Resource
208 variable "first_run_commands" {
209 description = "List of private IPs to assign to the ENI without regard to order."
212 "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
213 "sudo systemctl restart sshd",
214 "sudo useradd --create-home -s /bin/bash provisionuser",
215 "echo 'provisionuser:Csit1234' | sudo chpasswd",
216 "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
217 "sudo useradd --create-home -s /bin/bash testuser",
218 "echo 'testuser:Csit1234' | sudo chpasswd",
219 "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"
223 # Variables for Null Resource
224 variable "ansible_topology_path" {
225 description = "Ansible topology path."
227 default = "../../fdio.infra.ansible/cloud_topology.yaml"