-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
39 lines (37 loc) · 1.23 KB
/
main.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
variable "environment" { default = "ustx-dev-lab" }
variable "instance_type" { default = "t2.medium" }
variable "region" { default = "us-east-1" }
variable "monitoring" { default = true }
variable "scaling" {
type = map
default = {
"min" = 0
"max" = 1
}
}
variable "aws_labels" {
type = map
default = {
"net.matrix.orgunit" = "Matrix NOC"
"net.matrix.organization" = "Private Ops"
"net.matrix.commonname" = "cloud"
"net.matrix.locality" = "Dallas"
"net.matrix.state" = "Texas"
"net.matrix.country" = "USA"
"net.matrix.environment" = "development"
"net.matrix.application" = "windows desktop"
"net.matrix.role" = "labs"
"net.matrix.owner" = "[email protected]"
"net.matrix.customer" = "PVT-01"
"net.matrix.costcenter" = "INT-01"
}
}
module "ecs-windows" {
source = "jjno91/ecs-windows/aws"
version = "0.1.0"
env = var.environment
min_size = var.scaling["min"]
max_size = var.scaling["max"]
instance_type = var.instance_type
tags = var.aws_labels
}