-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_variables.tf
99 lines (84 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
variable "availability_zones" {
description = "The availability zones to use"
type = list(string)
default = ["us-east-1a", "us-east-1b", "us-east-1c"]
}
variable "create_internet_gateway" {
type = bool
description = "Flag to determine if an internet gateway should be created"
default = false
}
variable "ecs_alb_sg" {
description = "The security group for the Application Load Balancer"
type = string
default = "ecs-albsg"
}
variable "enable_nat_gateway" {
description = "Enable NAT Gateway"
type = bool
default = false
}
variable "owner" {
description = "The owner of the infrastructure"
type = string
default = "alis"
}
# Manually update to set the version you want to run
variable "phdi_version" {
description = "PHDI container image version"
type = string
default = "v1.4.4"
}
variable "private_subnets" {
description = "The private subnets"
type = list(string)
default = ["176.31.1.0/24", "176.31.3.0/24"]
}
variable "project" {
description = "The project name"
type = string
default = "dibbs"
}
variable "public_subnets" {
description = "The public subnets"
type = list(string)
default = ["176.31.2.0/24", "176.31.4.0/24"]
}
variable "region" {
description = "AWS region"
type = string
default = "us-east-1"
}
variable "single_nat_gateway" {
description = "Single NAT Gateway"
type = bool
default = false
}
variable "vpc" {
description = "The name of the VPC"
type = string
default = "ecs-vpc"
}
variable "vpc_cidr" {
description = "The CIDR block for the VPC"
type = string
default = "176.31.0.0/16"
}
variable "ecr_viewer_database_type" {
description = "The SQL variant used for the eCR data tables"
type = string
default = "postgres"
}
variable "ecr_viewer_database_schema" {
description = "The database schema used for the eCR data tables"
type = string
default = "core"
}
locals {
vpc_name = "${var.project}-${var.owner}-${terraform.workspace}"
tags = {
project = var.project
owner = var.owner
workspace = terraform.workspace
}
}