We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1377e3c commit f0e409bCopy full SHA for f0e409b
main.tf
@@ -94,6 +94,7 @@ resource "aws_lb" "this" {
94
ignore_changes = [
95
tags["elasticbeanstalk:shared-elb-environment-count"]
96
]
97
+ prevent_destroy = var.enable_alb_prevent_destroy
98
}
99
100
variables.tf
@@ -188,6 +188,12 @@ variable "timeouts" {
188
default = {}
189
190
191
+variable "enable_alb_prevent_destroy" {
192
+ description = "Whether to add lifecycle.prevent_destroy to the ALB resource"
193
+ type = bool
194
+ default = false
195
+}
196
+
197
################################################################################
198
# Listener(s)
199
0 commit comments