-
Notifications
You must be signed in to change notification settings - Fork 0
/
sg.tf
74 lines (74 loc) · 1.66 KB
/
sg.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
module "security_groups" {
source = "../../modules/security_groups"
security_groups = [
{
name = "chroma"
description = "chroma security group"
vpc_id = aws_vpc.base_vpc.id
ingress_rules = [
{
protocol = "tcp"
from_port = 8000
to_port = 8000
cidr_blocks = [aws_vpc.base_vpc.cidr_block]
},
{
protocol = "tcp"
from_port = 2049
to_port = 2049
cidr_blocks = ["0.0.0.0/0"]
}
]
egress_rules = [
{
protocol = "-1"
from_port = 0
to_port = 0
cidr_blocks = ["0.0.0.0/0"]
}
]
},
{
name = "vpn"
description = "vpn security group"
vpc_id = aws_vpc.base_vpc.id
ingress_rules = [
{
protocol = "udp"
from_port = 443
to_port = 443
cidr_blocks = ["0.0.0.0/0"]
}
]
egress_rules = [
{
protocol = "-1"
from_port = 0
to_port = 0
cidr_blocks = ["0.0.0.0/0"]
}
]
},
{
name = "efs"
description = "efs security group"
vpc_id = aws_vpc.base_vpc.id
ingress_rules = [
{
protocol = "tcp"
from_port = 2049
to_port = 2049
cidr_blocks = var.chroma_subnets_cidr
}
]
egress_rules = [
{
protocol = "tcp"
from_port = 2049
to_port = 2049
cidr_blocks = var.chroma_subnets_cidr
}
]
}
]
}