-
Notifications
You must be signed in to change notification settings - Fork 0
/
sg.tf
39 lines (34 loc) · 776 Bytes
/
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
resource "aws_security_group" "arm_reportportal_sg" {
name = "${var.name}-sg"
vpc_id = "${var.vpc_id}"
ingress {
from_port = 22
to_port = 22
protocol = "TCP"
cidr_blocks = "${var.trusted_cidrs}"
}
ingress {
from_port = 8080
to_port = 8080
protocol = "TCP"
cidr_blocks = "${var.trusted_cidrs}"
}
ingress {
from_port = 8500
to_port = 8500
protocol = "TCP"
cidr_blocks = "${var.trusted_cidrs}"
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
tags = {
Name = "${var.name}"
OWNER = "${var.owner}"
PURPOSE = "${var.purpose}"
REPO = "${var.repo}"
}
}