21832: Allows custom backup retention period config.
[arvados.git] / tools / salt-install / terraform / aws / services / variables.tf
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: CC-BY-SA-3.0
4
5 variable "instance_type" {
6   description = "The EC2 instance types to use per service node"
7   type = map(string)
8   default = {
9     default = "m5a.large"
10   }
11 }
12
13 variable "instance_volume_size" {
14   description = "EC2 volume size in GiB per service node"
15   type = map(number)
16   default = {
17     default = 20
18     controller = 100
19   }
20 }
21
22 variable "pubkey_path" {
23   description = "Path to the file containing the public SSH key"
24   type = string
25   default = "~/.ssh/id_rsa.pub"
26 }
27
28 variable "deploy_user" {
29   description = "User for deploying the software"
30   type = string
31   default = "admin"
32 }
33
34 variable "ssl_password_secret_name_suffix" {
35   description = "Name suffix for the SSL certificate's private key password AWS secret."
36   type = string
37   default = "arvados-ssl-privkey-password"
38 }
39
40 variable "instance_ami" {
41   description = "The EC2 instance AMI to use on the nodes"
42   type = string
43   default = ""
44 }
45
46 variable "use_rds" {
47   description = "Enable to create an RDS instance as the cluster's database service"
48   type = bool
49   default = false
50 }
51
52 variable "rds_username" {
53   description = "RDS instance's username. Default: <cluster_name>_arvados"
54   type = string
55   default = ""
56 }
57
58 variable "rds_password" {
59   description = "RDS instance's password. Default: randomly-generated 32 chars"
60   type = string
61   default = ""
62 }
63
64 variable "rds_instance_type" {
65   description = "RDS instance type"
66   type = string
67   default = "db.m5.large"
68 }
69
70 variable "rds_allocated_storage" {
71   description = "RDS initial storage size (GiB)"
72   type = number
73   default = 60
74 }
75
76 variable "rds_max_allocated_storage" {
77   description = "RDS maximum storage size that will autoscale to (GiB)"
78   type = number
79   default = 300
80 }
81
82 variable "rds_backup_retention_period" {
83   description = "RDS Backup retention (days). Set to 0 to disable."
84   type = number
85   default = 7
86 }