-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaws_sg.tf
53 lines (51 loc) · 1.39 KB
/
aws_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
resource "aws_security_group" "http-ssh" {
name = "http-ssh"
description = "Allow SSH and HTTP/HTTPS access to server"
ingress = [
{
cidr_blocks = [
"0.0.0.0/0",
]
ipv6_cidr_blocks = []
description = "Allow SSH"
from_port = 22
prefix_list_ids = []
protocol = "tcp"
security_groups = []
self = false
to_port = 22
},
{
cidr_blocks = [
"0.0.0.0/0",
]
ipv6_cidr_blocks = []
description = "Allow HTTP"
from_port = 80
prefix_list_ids = []
protocol = "tcp"
security_groups = []
self = false
to_port = 80
},
{
cidr_blocks = [
"0.0.0.0/0",
]
ipv6_cidr_blocks = []
description = "Allow HTTPS"
from_port = 443
prefix_list_ids = []
protocol = "tcp"
security_groups = []
self = false
to_port = 443
},
]
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}