-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
87 lines (71 loc) · 1.78 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
82
83
84
85
86
87
variable "aws_region" {
description = "AWS region where launch the EC2"
default = "eu-west-1"
}
variable "ssh_user" {
description = "Username of SSH connection"
default = "ubuntu"
}
variable "vpc_cidr_block" {
default = "10.0.0.0/16"
}
variable "aws_profile" {
description = "AWS client profile"
default = "default"
}
variable "instance_type" {
default = "t3.small"
}
variable "aws_private_key_path" {
description = <<DESCRIPTION
Path to the SSH private key to be used for authentication.
Ensure this keypair is added to your local SSH agent so provisioners can
connect.
Example: ~/.ssh/my_private_key.pem
DESCRIPTION
}
variable "aws_public_key_path" {
description = <<DESCRIPTION
Path to the SSH public key to be used for authentication.
Example: ~/.ssh/my_public_key.pub
DESCRIPTION
}
variable "aws_key_name" {
description = "Name of the AWS key pair"
}
variable "app_name" {
description = "Every resources will be named with this string"
default = "webres"
}
variable "db_disk_size" {
description = "Database storage"
default = 10
}
variable "db_instance_class" {
description = "Database instance class"
default = {
small = "db.t3.small"
medium = "db.t3.medium"
large = "db.r5.large"
xlarge = "db.r5.xlarge"
}
}
variable "db_instance_size" {
description = "Size of DB instance"
}
variable "db_master_password" {
description = "Aurora instance master password"
}
variable "db_master_username" {
description = "Aurora instance master username"
}
variable "db_password" {
description = "Database password"
}
variable "db_username" {
description = "Database username"
}
variable "ssh_cidr" {
type = list
description = "CIDR blocks from where the SSH connection are allowed"
}