Skip to content

Commit

Permalink
updates lb-https.tf to tf 12+ syntax (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jritsema authored Oct 12, 2020
1 parent f4047b6 commit 17ab0b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions env/dev/lb-https.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ variable "https_port" {
variable "certificate_arn" {}

resource "aws_alb_listener" "https" {
load_balancer_arn = "${aws_alb.main.id}"
port = "${var.https_port}"
load_balancer_arn = aws_alb.main.id
port = var.https_port
protocol = "HTTPS"
certificate_arn = "${var.certificate_arn}"
certificate_arn = var.certificate_arn

default_action {
target_group_arn = "${aws_alb_target_group.main.id}"
target_group_arn = aws_alb_target_group.main.id
type = "forward"
}
}

resource "aws_security_group_rule" "ingress_lb_https" {
type = "ingress"
description = "HTTPS"
from_port = "${var.https_port}"
to_port = "${var.https_port}"
from_port = var.https_port
to_port = var.https_port
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.nsg_lb.id}"
security_group_id = aws_security_group.nsg_lb.id
}

0 comments on commit 17ab0b9

Please sign in to comment.