fix common SG to take var.ssh_port into account
@@ -46,8 +46,8 @@ resource "aws_security_group" "common" {
}
ingress {
- from_port = 22
- to_port = 22
+ from_port = "${var.ssh_port}"
+ to_port = "${var.ssh_port}"
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
