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 # Variables for Placement Group
31 variable "placement_group_strategy" {
32 description = "The placement strategy. Can be cluster, partition or spread."
37 # Variables for Instance
39 description = "AMI to use for the instance."
41 default = "ami-07430bfa17fd4e597"
44 variable "tg_associate_public_ip_address" {
45 description = "Whether to associate a public IP address with an instance in a VPC."
50 variable "tg_instance_initiated_shutdown_behavior" {
51 description = "Shutdown behavior for the instance."
56 variable "tg_instance_type" {
57 description = "The instance type to use for the instance."
59 default = "c5n.4xlarge"
62 variable "tg_private_ip" {
63 description = "Private IP address to associate with the instance in a VPC."
65 default = "192.168.0.10"
68 variable "tg_source_dest_check" {
69 description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
75 description = "AMI to use for the instance."
77 default = "ami-0a890555652963ec2"
80 variable "sut1_associate_public_ip_address" {
81 description = "Whether to associate a public IP address with an instance in a VPC."
86 variable "sut1_instance_initiated_shutdown_behavior" {
87 description = "Shutdown behavior for the instance."
92 variable "sut1_instance_type" {
93 description = "The instance type to use for the instance."
95 default = "c5n.4xlarge"
98 variable "sut1_private_ip" {
99 description = "Private IP address to associate with the instance in a VPC."
101 default = "192.168.0.11"
104 variable "sut1_source_dest_check" {
105 description = "Controls if traffic is routed to the instance when the destination address does not match the instance."
110 # Variables for Network Interface
111 variable "tg_if1_private_ip" {
112 description = "List of private IPs to assign to the ENI without regard to order."
114 default = "192.168.10.254"
117 variable "tg_if2_private_ip" {
118 description = "List of private IPs to assign to the ENI without regard to order."
120 default = "192.168.20.254"
123 variable "destination_cidr_block_tg_if1" {
124 description = "The destination CIDR block."
126 default = "10.0.0.0/24"
129 variable "destination_cidr_block_tg_if2" {
130 description = "The destination CIDR block."
132 default = "20.0.0.0/24"
135 variable "sut1_if1_private_ip" {
136 description = "List of private IPs to assign to the ENI without regard to order."
138 default = "192.168.10.11"
141 variable "sut1_if2_private_ip" {
142 description = "List of private IPs to assign to the ENI without regard to order."
144 default = "192.168.20.11"
147 # Variables for Null Resource
148 variable "first_run_commands" {
149 description = "List of private IPs to assign to the ENI without regard to order."
152 "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
153 "sudo systemctl restart sshd",
154 "sudo useradd --create-home -s /bin/bash provisionuser",
155 "echo 'provisionuser:Csit1234' | sudo chpasswd",
156 "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
157 "sudo useradd --create-home -s /bin/bash testuser",
158 "echo 'testuser:Csit1234' | sudo chpasswd",
159 "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"
163 # Variables for Null Resource
164 variable "ansible_topology_path" {
165 description = "Ansible topology path."
167 default = "../../fdio.infra.ansible/cloud_topology.yaml"