fix(terraform): AWS
[csit.git] / fdio.infra.terraform / terraform-aws-1n-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-1n-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
30 # Variables for Placement Group
31 variable "placement_group_strategy" {
32   description = "The placement strategy. Can be cluster, partition or spread."
33   type        = string
34   default     = "cluster"
35 }
36
37 # Variables for Instance
38 variable "tg_ami" {
39   description = "AMI to use for the instance."
40   type        = string
41   default     = "ami-01d1d62914ef00b25"
42 }
43
44 variable "tg_associate_public_ip_address" {
45   description = "Whether to associate a public IP address with an instance in a VPC."
46   type        = bool
47   default     = true
48 }
49
50 variable "tg_instance_initiated_shutdown_behavior" {
51   description = "Shutdown behavior for the instance."
52   type        = string
53   default     = "terminate"
54 }
55
56 variable "tg_instance_type" {
57   description = "The instance type to use for the instance."
58   type        = string
59   default     = "c5n.4xlarge"
60 }
61
62 variable "tg_private_ip" {
63   description = "Private IP address to associate with the instance in a VPC."
64   type        = string
65   default     = "192.168.0.10"
66 }
67
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."
70   type        = bool
71   default     = false
72 }
73
74 # Variables for Network Interface
75 variable "tg_if1_private_ip" {
76   description = "List of private IPs to assign to the ENI without regard to order."
77   type        = string
78   default     = "192.168.10.254"
79 }
80
81 variable "tg_if2_private_ip" {
82   description = "List of private IPs to assign to the ENI without regard to order."
83   type        = string
84   default     = "192.168.10.11"
85 }
86
87 variable "destination_cidr_block_tg_if1" {
88   description = "The destination CIDR block."
89   type        = string
90   default     = "10.0.0.0/16"
91 }
92
93 variable "destination_cidr_block_tg_if2" {
94   description = "The destination CIDR block."
95   type        = string
96   default     = "20.0.0.0/16"
97 }
98
99 # Variables for Null Resource
100 variable "first_run_commands" {
101   description = "List of private IPs to assign to the ENI without regard to order."
102   type        = list(string)
103   default = [
104     "sudo sed -i 's/^PasswordAuthentication/#PasswordAuthentication/' /etc/ssh/sshd_config",
105     "sudo systemctl restart sshd",
106     "sudo useradd --create-home -s /bin/bash provisionuser",
107     "echo 'provisionuser:Csit1234' | sudo chpasswd",
108     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
109     "sudo useradd --create-home -s /bin/bash testuser",
110     "echo 'testuser:Csit1234' | sudo chpasswd",
111     "echo 'testuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers"
112   ]
113 }
114
115 # Variables for Null Resource
116 variable "ansible_topology_path" {
117   description = "Ansible topology path."
118   type        = string
119   default     = "../../fdio.infra.ansible/cloud_topology.yaml"
120 }