diff options
Diffstat (limited to 'photo.jinwei.me/infra/variables.tf')
-rw-r--r-- | photo.jinwei.me/infra/variables.tf | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/photo.jinwei.me/infra/variables.tf b/photo.jinwei.me/infra/variables.tf new file mode 100644 index 0000000..7a62b4d --- /dev/null +++ b/photo.jinwei.me/infra/variables.tf | |||
@@ -0,0 +1,47 @@ | |||
1 | provider "aws" { | ||
2 | region = var.region | ||
3 | } | ||
4 | |||
5 | variable "name" { | ||
6 | description = "Name of the service. It will be used to name EC2, and RDS instances." | ||
7 | default = "jinwei-me" | ||
8 | } | ||
9 | |||
10 | variable "region" { | ||
11 | default = "eu-central-1" | ||
12 | description = "AWS region" | ||
13 | } | ||
14 | |||
15 | # RDS | ||
16 | variable "rds_instance_class" { | ||
17 | default = "db.t3.micro" | ||
18 | } | ||
19 | |||
20 | variable "rds_storage" { | ||
21 | default = 5 | ||
22 | } | ||
23 | |||
24 | variable "rds_username" { | ||
25 | default = "jinweime" | ||
26 | } | ||
27 | |||
28 | variable "rds_engine" { | ||
29 | default = "mariadb" | ||
30 | } | ||
31 | |||
32 | variable "rds_engine_version" { | ||
33 | default = "10.6" | ||
34 | } | ||
35 | |||
36 | variable "rds_parameter_group" { | ||
37 | default = "mariadb10.6" | ||
38 | } | ||
39 | |||
40 | variable "rds_port" { | ||
41 | default = 33060 | ||
42 | } | ||
43 | |||
44 | # EC 2 | ||
45 | variable "ec2_instance_type" { | ||
46 | default = "t3.micro" | ||
47 | } | ||