-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
107 lines (87 loc) · 2.17 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
103
104
105
106
107
######################
# General
######################
variable "aws_region" {
description = "AWS Region"
type = string
default = "eu-north-1"
}
variable "environment" {
type = string
default = "dev"
}
variable "namespace" {
description = "Namespace for resource names"
default = "vortexwest"
type = string
}
####################
# VPC
####################
variable "vpc_cidr_block" {
description = "CIDR block for main vpc"
type = string
default = "10.0.0.0/16"
}
variable "public_ec2_key" {
description = "Public key for SSH access to EC2 instances"
type = string
default = "publicsshkey"
}
######################
# ROUTE 53
######################
variable "root_domain_name" {
type = string
description = "The domain name for the website."
default = "www.example.info"
}
variable "r53_zone_id" {
type = string
description = "The zone ID of the domain you are deploying to, you can get it from R53 DNS Dashboard"
default = "Z002051618M4QHG4VM3M6"
}
#################
# RDS
#################
variable "db_username" {
description = "Database administrator username"
type = string
sensitive = true
}
variable "db_password" {
description = "Database administrator password"
type = string
sensitive = true
}
variable "db_name" {
description = "Database name"
type = string
}
##################
# ECS
##################
variable "maximum_scaling_step_size" {
description = "Maximum amount of EC2 instances that should be added on scale-out"
default = 4
type = number
}
variable "minimum_scaling_step_size" {
description = "Minimum amount of EC2 instances that should be added on scale-out"
default = 1
type = number
}
variable "target_capacity" {
description = "Amount of resources of container instances that should be used for task placement in %"
default = 100
type = number
}
# Task definition
variable "frontend_container_image" {
description = "Frontend Container Image"
type = string
}
variable "backend_container_image" {
description = "Backend Container Image"
type = string
}