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