2015-06-09 17:02:19 +02:00
|
|
|
resource "aws_security_group" "default" {
|
|
|
|
name = "main_rds_sg"
|
|
|
|
description = "Allow all inbound traffic"
|
2015-06-09 18:37:22 +02:00
|
|
|
vpc_id = "${var.vpc_id}"
|
2015-06-09 17:02:19 +02:00
|
|
|
|
|
|
|
ingress {
|
2015-08-31 10:19:02 +02:00
|
|
|
from_port = 0
|
|
|
|
to_port = 65535
|
|
|
|
protocol = "TCP"
|
|
|
|
cidr_blocks = ["${var.cidr_blocks}"]
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
egress {
|
2015-08-31 10:19:02 +02:00
|
|
|
from_port = 0
|
|
|
|
to_port = 0
|
|
|
|
protocol = "-1"
|
|
|
|
cidr_blocks = ["0.0.0.0/0"]
|
2015-06-09 17:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tags {
|
|
|
|
Name = "${var.sg_name}"
|
|
|
|
}
|
|
|
|
}
|