feat: Add create_autoscaling_group option and extra outputs (#2067)

This commit is contained in:
Seth Pollack
2022-05-12 14:17:49 -04:00
committed by GitHub
parent d969e94bbe
commit 58420b92a0
5 changed files with 22 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ locals {
}
resource "aws_autoscaling_group" "this" {
count = var.create ? 1 : 0
count = var.create && var.create_autoscaling_group ? 1 : 0
name = var.use_name_prefix ? null : var.name
name_prefix = var.use_name_prefix ? "${var.name}-" : null