Commit e00e3336 authored by Chris Merrett's avatar Chris Merrett

Added support for TCP port selection in security group.

parent 4b6d9455
Pipeline #2360 passed with stage
in 26 seconds
......@@ -20,6 +20,10 @@ variable "rds_engine_version" {
default = "5.6.27"
}
variable "rds_tcp_port" {
default = "3306"
}
variable "rds_allocated_storage" {
description = "The allocated storage in GBs"
default = "100"
......@@ -75,8 +79,8 @@ resource "aws_security_group" "rds" {
description = "${var.rds_instance_name} RDS SG"
ingress {
from_port = 3306
to_port = 3306
from_port = "${var.rds_tcp_port}"
to_port = "${var.rds_tcp_port}"
protocol = "tcp"
security_groups = ["${var.security_groups}"]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment