-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault-sg.tf
48 lines (42 loc) · 1.01 KB
/
default-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
resource "aws_default_security_group" "default" {
vpc_id = "${aws_vpc.main.id}"
ingress {
from_port = 0
to_port = 0
protocol = -1
security_groups = ["${aws_security_group.bastion.id}"]
description = "Bastion Access"
}
ingress {
from_port = -1
to_port = -1
protocol = 1
cidr_blocks = ["0.0.0.0/0"]
description = "ICMP Ingress"
}
egress {
from_port = -1
to_port = -1
protocol = 1
cidr_blocks = ["0.0.0.0/0"]
description = "ICMP Egress"
}
egress {
from_port = 0
to_port = 0
protocol = -1
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
description = "Outbound Access"
}
tags {
Name = "kuberform-default-sg"
Owner = "infrastructure"
Billing = "costcenter"
Role = "kuberform-bastion"
Provider = "https://github.com/kuberform"
}
}
output "sg_default" {
value = "${aws_default_security_group.default.id}"
}