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 b25438b commit 1e1bbffCopy full SHA for 1e1bbff
main.tf
@@ -305,7 +305,7 @@ module "launch_template" {
305
# #############################################################################
306
resource "aws_autoscaling_group" "this" {
307
name_prefix = local.name
308
- vpc_zone_identifier = var.private_subnet_ids
+ vpc_zone_identifier = var.is_create_public_lb || var.is_create_private_lb ? var.private_subnet_ids : var.public_subnet_ids
309
desired_capacity = 1
310
max_size = 1 #fix 1 to avoid race condition (if not move to document db for multi read/write)
311
min_size = 1
0 commit comments