blob: 11cf2cf6902a8c40dfc9fe4aa2b0640de43a2e7a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
provider "aws" {
region = var.region
}
variable "name" {
description = "Name of the service. It will be used to name EC2, and RDS instances."
default = "jinwei-me"
}
variable "region" {
default = "us-west-2"
description = "AWS region"
}
# RDS
variable "rds_initial_db_name" {
default = "wordpress"
}
variable "rds_instance_class" {
default = "db.t3.micro"
}
variable "rds_storage" {
default = 20
}
variable "rds_username" {
default = "jinweime"
}
variable "rds_engine" {
default = "mariadb"
}
variable "rds_engine_version" {
default = "10.6"
}
variable "rds_parameter_group" {
default = "mariadb10.6"
}
variable "rds_port" {
default = 33060
}
# EC 2
variable "ec2_instance_type" {
default = "t2.micro"
}
variable "site_domain" {
type = string
default = "jinwei.me"
}
variable "s3_cdn_name" {
type = string
default = "static"
}
variable "s3_cloudfront_name" {
type = string
default = "static.jinwei.me"
}
variable "cloudflare_account_id" {
description = "The Cloudflare UUID for the Account the Zone lives in."
type = string
sensitive = true
}
variable "hetzner_username" {
description = "Hetzner username"
type = string
sensitive = true
}
variable "hetzner_password" {
description = "Hetzner password"
type = string
sensitive = true
}
variable "hetzner_storagebox" {
description = "Hetzner storagebox url"
type = string
sensitive = true
}
variable "dockerhub_username" {
description = "dockerhub username"
type = string
sensitive = true
}
variable "dockerhub_token" {
description = "dockerhub token"
type = string
sensitive = true
}
variable "datadog_api_key" {
description = "Datadog.com API Key"
type = string
sensitive = true
}
|