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."
29 # Variables for Placement Group
30 variable "placement_group_strategy" {
31 description = "The placement strategy. Can be cluster, partition or spread."
36 # Variables for Instance
38 description = "AMI to use for the instance."
40 default = "ami-01d1d62914ef00b25"
43 variable "tg_associate_public_ip_address" {
44 description = "Whether to associate a public IP address with an instance in a VPC."
49 variable "tg_instance_initiated_shutdown_behavior" {
50 description = "Shutdown behavior for the instance."
55 variable "tg_instance_type" {
56 description = "The instance type to use for the instance."
58 default = "c5n.4xlarge"
61 variable "tg_private_ip" {
62 description = "Private IP address to associate with the instance in a VPC."
64 default = "192.168.0.10"
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."
74 description = "AMI to use for the instance."
76 default = "ami-0bfdf32a014984d8a"
79 variable "sut1_associate_public_ip_address" {
80 description = "Whether to associate a public IP address with an instance in a VPC."
85 variable "sut1_instance_initiated_shutdown_behavior" {
86 description = "Shutdown behavior for the instance."
91 variable "sut1_instance_type" {
92 description = "The instance type to use for the instance."
94 default = "c5n.4xlarge"
97 variable "sut1_private_ip" {
98 description = "Private IP address to associate with the instance in a VPC."
100 default = "192.168.0.11"
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."
109 variable "sut2_ami" {
110 description = "AMI to use for the instance."
112 default = "ami-05ea90e57d2df4368"
115 variable "sut2_associate_public_ip_address" {
116 description = "Whether to associate a public IP address with an instance in a VPC."
121 variable "sut2_instance_initiated_shutdown_behavior" {
122 description = "Shutdown behavior for the instance."
124 default = "terminate"
127 variable "sut2_instance_type" {
128 description = "The instance type to use for the instance."
130 default = "c5n.4xlarge"
133 variable "sut2_private_ip" {
134 description = "Private IP address to associate with the instance in a VPC."
136 default = "192.168.0.12"
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."
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."
149 default = "192.168.10.254"
152 variable "tg_if2_private_ip" {
153 description = "List of private IPs to assign to the ENI without regard to order."
155 default = "192.168.20.254"
158 variable "destination_cidr_block_tg_if1" {
159 description = "The destination CIDR block."
161 default = "10.0.0.0/24"
164 variable "destination_cidr_block_tg_if2" {
165 description = "The destination CIDR block."
167 default = "20.0.0.0/24"
170 variable "sut1_if1_private_ip" {
171 description = "List of private IPs to assign to the ENI without regard to order."
173 default = "192.168.10.11"
176 variable "sut1_if2_private_ip" {
177 description = "List of private IPs to assign to the ENI without regard to order."
179 default = "200.0.0.101"
182 variable "sut2_if1_private_ip" {
183 description = "List of private IPs to assign to the ENI without regard to order."
185 default = "200.0.0.102"
188 variable "sut2_if2_private_ip" {
189 description = "List of private IPs to assign to the ENI without regard to order."
191 default = "192.168.20.11"
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."
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"
210 # Variables for Null Resource
211 variable "ansible_topology_path" {
212 description = "Ansible topology path."
214 default = "../../fdio.infra.ansible/cloud_topology.yaml"