diff options
Diffstat (limited to 'jinwei.me/infra/variables.tf')
-rw-r--r-- | jinwei.me/infra/variables.tf | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/jinwei.me/infra/variables.tf b/jinwei.me/infra/variables.tf new file mode 100644 index 0000000..6745915 --- /dev/null +++ b/jinwei.me/infra/variables.tf | |||
@@ -0,0 +1,53 @@ | |||
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 = "us-west-2" | ||
12 | description = "AWS region" | ||
13 | } | ||
14 | |||
15 | |||
16 | # RDS | ||
17 | variable "rds_instance_class" { | ||
18 | default = "db.t3.micro" | ||
19 | } | ||
20 | |||
21 | variable "rds_storage" { | ||
22 | default = 20 | ||
23 | } | ||
24 | |||
25 | variable "rds_username" { | ||
26 | default = "jinweime" | ||
27 | } | ||
28 | |||
29 | variable "rds_engine" { | ||
30 | default = "mariadb" | ||
31 | } | ||
32 | |||
33 | variable "rds_engine_version" { | ||
34 | default = "10.6" | ||
35 | } | ||
36 | |||
37 | variable "rds_parameter_group" { | ||
38 | default = "mariadb10.6" | ||
39 | } | ||
40 | |||
41 | variable "rds_port" { | ||
42 | default = 33060 | ||
43 | } | ||
44 | |||
45 | # EC 2 | ||
46 | variable "ec2_instance_type" { | ||
47 | default = "t2.micro" | ||
48 | } | ||
49 | |||
50 | #variable "ec2_key_name" { | ||
51 | # description = "Name of key pair to log into the EC2 instance. The key pair must already exist." | ||
52 | # type = string | ||
53 | #} | ||