-
Notifications
You must be signed in to change notification settings - Fork 1
/
vars.tf
87 lines (71 loc) · 1.45 KB
/
vars.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
variable "region" {
type = string
default = "us-east-1"
}
variable "owner" {
type = string
}
# VPC Vars
variable "vpc_name" {
type = string
default = "dvwa_vpc"
}
variable "vpc_cidr" {
type = string
default = "10.0.0.0/16"
}
variable "vpc_azs" {
type = list(any)
default = ["us-east-1a", "us-east-1b"]
}
variable "vpc_public_subnets" {
type = list(any)
default = ["10.0.1.0/24", "10.0.2.0/24"]
}
# Security Group
variable "public_subnet_name" {
type = string
default = "public-subnet-sg"
}
variable "public_subnet_desc" {
type = string
default = "Security group for the public subnet"
}
variable "public_subnet_ingress_cidr" {
type = list(any)
description = "Add the ip address(es) that need(s) to access this ecs task in cidr format"
}
variable "public_subnet_ingress_rules" {
type = list(any)
default = ["http-80-tcp"]
}
variable "public_subnet_egress_cidr" {
type = list(any)
default = ["0.0.0.0/0"]
}
variable "public_subnet_egress_rules" {
type = list(any)
default = ["all-all"]
}
# ECS Cluster
variable "cluster_name" {
type = string
default = "dvwa-cluster"
}
# ECS Service
variable "cw_log_group" {
type = string
default = "/ecs/dvwa"
}
variable "ecs_svc_name" {
type = string
default = "dvwa"
}
variable "ecs_task_family" {
type = string
default = "dvwa"
}
variable "ecs_role_name" {
type = string
default = "dvwa-task-execution-role"
}