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