Skip to content

Commit 17ab0b9

Browse files
authored
updates lb-https.tf to tf 12+ syntax (#61)
1 parent f4047b6 commit 17ab0b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

env/dev/lb-https.tf

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ variable "https_port" {
1010
variable "certificate_arn" {}
1111

1212
resource "aws_alb_listener" "https" {
13-
load_balancer_arn = "${aws_alb.main.id}"
14-
port = "${var.https_port}"
13+
load_balancer_arn = aws_alb.main.id
14+
port = var.https_port
1515
protocol = "HTTPS"
16-
certificate_arn = "${var.certificate_arn}"
16+
certificate_arn = var.certificate_arn
1717

1818
default_action {
19-
target_group_arn = "${aws_alb_target_group.main.id}"
19+
target_group_arn = aws_alb_target_group.main.id
2020
type = "forward"
2121
}
2222
}
2323

2424
resource "aws_security_group_rule" "ingress_lb_https" {
2525
type = "ingress"
2626
description = "HTTPS"
27-
from_port = "${var.https_port}"
28-
to_port = "${var.https_port}"
27+
from_port = var.https_port
28+
to_port = var.https_port
2929
protocol = "tcp"
3030
cidr_blocks = ["0.0.0.0/0"]
31-
security_group_id = "${aws_security_group.nsg_lb.id}"
31+
security_group_id = aws_security_group.nsg_lb.id
3232
}

0 commit comments

Comments
 (0)