opentofu/examples/aws-rds/sg.tf

24 lines
429 B
Terraform
Raw Normal View History

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