diff options
author | clarkzjw <[email protected]> | 2023-01-31 14:24:47 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-31 14:24:47 -0800 |
commit | 55bf0526c86c88f5ae0d20bad6587c72cd91e835 (patch) | |
tree | 286340ac38a8f4558baa985fe6f364a9d8261a63 /infra/variables.tf | |
parent | 0d9b8b4a4a2bb936744a338d1e7a42f2bd2272c9 (diff) | |
download | zjw.social-55bf0526c86c88f5ae0d20bad6587c72cd91e835.tar.gz |
add ec2, rds
Diffstat (limited to 'infra/variables.tf')
-rw-r--r-- | infra/variables.tf | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/infra/variables.tf b/infra/variables.tf new file mode 100644 index 0000000..66c6e5c --- /dev/null +++ b/infra/variables.tf | |||
@@ -0,0 +1,58 @@ | |||
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 = "mastodon" | ||
8 | } | ||
9 | |||
10 | variable "region" { | ||
11 | default = "us-west-2" | ||
12 | description = "AWS region" | ||
13 | } | ||
14 | |||
15 | # RDS | ||
16 | variable "rds_instance_class" { | ||
17 | default = "db.t3.micro" | ||
18 | } | ||
19 | |||
20 | variable "rds_storage_size" { | ||
21 | default = 20 | ||
22 | } | ||
23 | |||
24 | variable "rds_username" { | ||
25 | default = "mastodon" | ||
26 | } | ||
27 | |||
28 | variable "rds_engine" { | ||
29 | default = "postgres" | ||
30 | } | ||
31 | |||
32 | variable "rds_engine_version" { | ||
33 | default = "13.7" | ||
34 | } | ||
35 | |||
36 | variable "rds_parameter_group" { | ||
37 | default = "default.postgres13" | ||
38 | } | ||
39 | |||
40 | variable "rds_port" { | ||
41 | default = 33060 | ||
42 | } | ||
43 | |||
44 | # EC 2 | ||
45 | variable "ec2_instance_type" { | ||
46 | default = "t3a.medium" | ||
47 | } | ||
48 | |||
49 | variable "site_domain" { | ||
50 | type = string | ||
51 | default = "m.jinwei.me" | ||
52 | } | ||
53 | |||
54 | variable "cloudflare_account_id" { | ||
55 | description = "The Cloudflare UUID for the Account the Zone lives in." | ||
56 | type = string | ||
57 | sensitive = true | ||
58 | } | ||