-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsecurity_groups.tf
55 lines (45 loc) · 1.33 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
# resource "aws_security_group" "elb_security_group" {
# name = "elb_security_group"
# description = "Allow traffic from outside the web."
# vpc_id = module.aws_vpc.default_vpc.id
# tags = {
# Name = "elb_security_group"
# }
# ingress {
# description = "TLS from VPC"
# from_port = 443
# to_port = 443
# protocol = "tcp"
# cidr_blocks = [module.aws_vpc.default_vpc.cidr_block]
# }
# }
# resource "aws_security_group" "asg_security_group" {
# name = "asg_security_group"
# description = "Allow traffic only from elastic load balancer"
# vpc_id = module.aws_vpc.default_vpc.id
# tags = {
# Name = "asg_security_group"
# }
# ingress {
# description = "TLS from VPC"
# from_port = 443
# to_port = 443
# protocol = "tcp"
# cidr_blocks = [module.aws_vpc.default_vpc.cidr_block]
# }
# }
# resource "aws_security_group" "ec2_security_group" {
# name = "ec2_security_group"
# description = "Allow traffic only from auto scaling group"
# vpc_id = module.aws_vpc.default_vpc.id
# tags = {
# Name = "asg_security_group"
# }
# ingress {
# description = "TLS from VPC"
# from_port = 443
# to_port = 443
# protocol = "tcp"
# cidr_blocks = [module.aws_vpc.default_vpc.cidr_block]
# }
# }