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-c6gn"
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-0c2d02d48236a23dd"
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 = "c6gn.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-05ea90e57d2df4368"
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 = "c6gn.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 # Variables for Network Interface
123 variable "tg_if1_private_ip" {
124 description = "List of private IPs to assign to the ENI without regard to order."
126 default = "192.168.10.254"
129 variable "tg_if2_private_ip" {
130 description = "List of private IPs to assign to the ENI without regard to order."
132 default = "192.168.20.254"
135 variable "destination_cidr_block_tg_if1" {
136 description = "The destination CIDR block."
138 default = "10.0.0.0/24"
141 variable "destination_cidr_block_tg_if2" {
142 description = "The destination CIDR block."
144 default = "20.0.0.0/24"
147 variable "sut1_if1_private_ip" {
148 description = "List of private IPs to assign to the ENI without regard to order."
150 default = "192.168.10.11"
153 variable "sut1_if2_private_ip" {
154 description = "List of private IPs to assign to the ENI without regard to order."
156 default = "192.168.20.11"
159 # Variables for Null Resource
160 variable "first_run_commands" {
161 description = "List of private IPs to assign to the ENI without regard to order."
164 "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
165 "sudo systemctl restart sshd",
166 "sudo useradd --create-home -s /bin/bash provisionuser",
167 "echo 'provisionuser:Csit1234' | sudo chpasswd",
168 "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
169 "sudo useradd --create-home -s /bin/bash testuser",
170 "echo 'testuser:Csit1234' | sudo chpasswd",
171 "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"
175 # Variables for Null Resource
176 variable "ansible_topology_path" {
177 description = "Ansible topology path."
179 default = "../../fdio.infra.ansible/cloud_topology.yaml"