aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-31 14:24:47 -0800
committerclarkzjw <[email protected]>2023-01-31 14:24:47 -0800
commit55bf0526c86c88f5ae0d20bad6587c72cd91e835 (patch)
tree286340ac38a8f4558baa985fe6f364a9d8261a63 /infra/variables.tf
parent0d9b8b4a4a2bb936744a338d1e7a42f2bd2272c9 (diff)
downloadzjw.social-55bf0526c86c88f5ae0d20bad6587c72cd91e835.tar.gz
add ec2, rds
Diffstat (limited to 'infra/variables.tf')
-rw-r--r--infra/variables.tf58
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 @@
1provider "aws" {
2 region = var.region
3}
4
5variable "name" {
6 description = "Name of the service. It will be used to name EC2, and RDS instances."
7 default = "mastodon"
8}
9
10variable "region" {
11 default = "us-west-2"
12 description = "AWS region"
13}
14
15# RDS
16variable "rds_instance_class" {
17 default = "db.t3.micro"
18}
19
20variable "rds_storage_size" {
21 default = 20
22}
23
24variable "rds_username" {
25 default = "mastodon"
26}
27
28variable "rds_engine" {
29 default = "postgres"
30}
31
32variable "rds_engine_version" {
33 default = "13.7"
34}
35
36variable "rds_parameter_group" {
37 default = "default.postgres13"
38}
39
40variable "rds_port" {
41 default = 33060
42}
43
44# EC 2
45variable "ec2_instance_type" {
46 default = "t3a.medium"
47}
48
49variable "site_domain" {
50 type = string
51 default = "m.jinwei.me"
52}
53
54variable "cloudflare_account_id" {
55 description = "The Cloudflare UUID for the Account the Zone lives in."
56 type = string
57 sensitive = true
58}
Powered by cgit v1.2.3 (git 2.41.0)