forked from scotteau/servian-tech-challenge-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
68 lines (56 loc) · 1.1 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
# General
variable "region" {
default = "ap-southeast-2"
}
variable "project_name" {
default = "servian-tc"
}
locals {
default_tags = {
ManagedBy = "Terraform"
Project = var.project_name
}
prefix = var.project_name
azs = ["2a", "2b"]
}
# Network
variable "public" {
type = list(string)
default = ["10.0.101.0/24", "10.0.102.0/24"]
}
variable "servers" {
type = list(string)
default = ["10.0.11.0/24", "10.0.12.0/24"]
}
variable "database" {
type = list(string)
default = ["10.0.21.0/24", "10.0.22.0/24"]
}
# Database
variable "db_name" {
type = string
default = "app"
}
variable "master_username" {
type = string
default = "postgres"
}
# Security Groups
variable "database_ingress_ports" {
description = "Ports opened for database"
type = list(number)
default = [5432]
}
variable "ecs_ingress_ports" {
description = "Ports opened for ECS"
type = list(number)
default = [3000]
}
variable "alb_ingress_ports" {
description = "Ports opened for ALB"
type = list(number)
default = [80]
}
variable "PORT" {
default = 3000
}