aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'jinwei.me/infra/variables.tf')
-rw-r--r--jinwei.me/infra/variables.tf53
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 @@
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 = "jinwei-me"
8}
9
10variable "region" {
11 default = "us-west-2"
12 description = "AWS region"
13}
14
15
16# RDS
17variable "rds_instance_class" {
18 default = "db.t3.micro"
19}
20
21variable "rds_storage" {
22 default = 20
23}
24
25variable "rds_username" {
26 default = "jinweime"
27}
28
29variable "rds_engine" {
30 default = "mariadb"
31}
32
33variable "rds_engine_version" {
34 default = "10.6"
35}
36
37variable "rds_parameter_group" {
38 default = "mariadb10.6"
39}
40
41variable "rds_port" {
42 default = 33060
43}
44
45# EC 2
46variable "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#}
Powered by cgit v1.2.3 (git 2.41.0)