-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecurity-groups.tf
60 lines (52 loc) · 1.22 KB
/
security-groups.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
resource "aws_security_group" "instance_sg" {
description = "Security group for qnd-graphite"
vpc_id = "${data.aws_vpc.selected.id}"
egress {
cidr_blocks = ["0.0.0.0/0"]
from_port = "0"
to_port = "0"
protocol = "-1"
}
ingress {
cidr_blocks = ["0.0.0.0/0"]
from_port = 22
to_port = 22
protocol = "tcp"
}
ingress {
cidr_blocks = ["${data.aws_vpc.selected.cidr_block}"]
from_port = 80
to_port = 80
protocol = "tcp"
}
ingress {
cidr_blocks = ["${data.aws_vpc.selected.cidr_block}"]
from_port = 2003
to_port = 2004
protocol = "tcp"
}
ingress {
cidr_blocks = ["${data.aws_vpc.selected.cidr_block}"]
from_port = 2023
to_port = 2034
protocol = "tcp"
}
ingress {
cidr_blocks = ["${data.aws_vpc.selected.cidr_block}"]
from_port = 8125
to_port = 8125
protocol = "udp"
}
ingress {
cidr_blocks = ["${data.aws_vpc.selected.cidr_block}"]
from_port = 8126
to_port = 8126
protocol = "tcp"
}
tags = {
Name = "${local.resource_identifier}"
Env = "${local.env}"
Team = "${local.team}"
Service = "${local.service}"
}
}