-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
52 lines (40 loc) · 1.31 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
variable "app" {
default = "foundationsettings"
}
variable "image_version" {
default = "1.0.190430.1"
}
variable "container_registry" {
default = "687928977810.dkr.ecr.us-east-1.amazonaws.com"
}
variable "region" {
default = "us-east-1"
}
# Whether the application is available on the public internet,
# also will determine which subnets will be used (public or private)
variable "internal" {
default = "true"
}
variable "team" {
default = "Developer Services"
}
variable "contact-email" {
default = "[email protected]"
}
variable "customer" {
default = "Developer Services"
}
locals {
env = "${terraform.workspace == "default" ? "dev" : terraform.workspace}"
aws_account = "${terraform.workspace == "prod" ? "aws-platform-services-prod" : "aws-platform-services-dev"}"
saml_role = "${local.aws_account}-admin"
cluster_name = "${local.env == "prod" ? "platform-services-eks-prod" : (local.env == "pst" ? "platform-services-eks-test" : "platform-services-eks-dev")}"
host_name = "${local.env == "prod" ? "${var.app}.turner-systems.com" : "${local.env}.${var.app}.turner-systems.com" }"
tags = {
app = "${var.app}"
env = "${local.env}"
team = "${var.team}"
"contact-email" = "${var.contact-email}"
customer = "${var.customer}"
}
}