(MODE-11365) Added lifecycle to alb listener.
This commit is contained in:
parent
7d264c6a0d
commit
8767fafdd0
1 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
resource "aws_alb_listener" "this_alb_listener" {
|
||||
depends_on = ["aws_autoscaling_group.autoscalinggroup-this"]
|
||||
load_balancer_arn = "${data.terraform_remote_state.mono_alb.this_alb_arn}"
|
||||
port = 80
|
||||
protocol = "HTTP"
|
||||
|
|
@ -6,4 +7,7 @@ resource "aws_alb_listener" "this_alb_listener" {
|
|||
target_group_arn = "${aws_alb_target_group.target_group_this.arn}"
|
||||
type = "forward"
|
||||
}
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue