generated from michaeldeggers/repo_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
102 lines (85 loc) · 2.18 KB
/
variables.tf
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
variable "aws_account_id" {
description = "AWS Account ID"
type = string
}
variable "organization" {
description = "TF Cloud Organization"
type = string
}
variable "project_name" {
description = "Project Name"
type = string
}
variable "additional_tags" {
default = {}
description = "Additional resource tags"
type = map(string)
}
variable "vpc_cidr" {
description = "VPC CIDR range"
type = string
default = "10.0.0.0/16"
}
variable "azs" {
description = "Availability Zones"
type = list(string)
default = ["us-east-1a", "us-east-1b"]
}
variable "public_subnets" {
description = "Public subnets where the ghost instances will be deployed"
type = list(string)
default = ["10.0.101.0/24", "10.0.102.0/24"]
}
variable "database_subnets" {
description = "Private subnets where the RDS instance will be deployed"
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24"]
}
# RDS Vars
variable "mysql_engine_version" {
description = "Versions available: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html"
type = string
default = "5.7"
}
variable "mysql_instance_class" {
type = string
default = "db.t2.micro"
}
variable "mysql_name" {
type = string
default = "ghostdb"
}
variable "mysql_username" {
type = string
sensitive = true
default = "ghostdbuser"
}
# ASG Variables
variable "ec2_instance_type" {
type = string
default = "t2.micro"
}
variable "asg_max_size" {
type = string
default = 1
}
variable "asg_min_size" {
type = string
default = 1
}
# Launch Config user_data Variables
variable "website_url" {
description = "Your ghost website URL, has to match the origin (custom domain OR load balancer DNS Name)"
type = string
default = ""
}
variable "website_admin_url" {
description = "Your ghost website admin URL, has to match the origin (custom domain OR load balancer DNS Name). Can be a subdomain of website_url"
type = string
default = ""
}
variable "route53_hosted_zone_name" {
description = "Name of hosted zone for blog"
type = string
default = ""
}