-
Notifications
You must be signed in to change notification settings - Fork 18
/
variables.tf
81 lines (63 loc) · 1.54 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#############
# Instances #
#############
variable "aws_region" {
description = "Region where to deploy the Nextcloud application and the database"
default = "eu-west-1"
}
variable "nextcloud_instance_type" {
description = "Instance type for the Nextcloud application"
default = "t2.micro"
}
variable "nextcloud_key_name" {
description = "SSH key name to associate to the Nextcloud app instance"
default = null
}
variable "db_instance_type" {
description = "Database instance type"
default = "db.t2.micro"
}
###########
# Network #
###########
variable "vpc_cidr" {
description = "CIDR of the VPC"
default = "10.0.0.0/16"
}
variable "nextcloud_cidr" {
description = "CIDR of the public subnet"
default = "10.0.1.0/24"
}
variable "db_cidr" {
description = "CIDR of the private subnet"
default = "10.0.2.0/24"
}
############
# Database #
############
variable "db_user" {
description = "Nextcloud database root user"
}
variable "db_pass" {
description = "Nextcloud database root password"
}
#############
# Nextcloud #
#############
variable "admin_user" {
description = "Nextcloud admin user"
}
variable "admin_pass" {
description = "Nextcloud admin password"
}
################
# S3 datastore #
################
variable "s3_bucket_name" {
description = "Name of the S3 bucket to use as datastore"
default = "nextcloud-datastore"
}
variable "force_datastore_destroy" {
description = "Destroy all objects so that the bucket can be destroyed without error. These objects are not recoverable"
default = false
}