-
Notifications
You must be signed in to change notification settings - Fork 0
/
locals.tf
50 lines (49 loc) · 1.03 KB
/
locals.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
locals {
vpc_cidr = "10.123.0.0/16"
}
locals {
security_groups = {
public = {
name = "public_sg"
description = "public access"
ingress = {
open = {
from = 0
to = 0
protocol = -1
cidr_blocks = [var.access_ip]
}
tg = {
from = 8000
to = 8000
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
http = {
from = 80
to = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
nginx = {
from = 8000
to = 8000
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
}
}
rds = {
name = "rds_sg"
description = "rds access"
ingress = {
mysql = {
from = 3306
to = 3306
protocol = "tcp"
cidr_blocks = [local.vpc_cidr]
}
}
}
}
}