diff --git a/README.md b/README.md index 154da2f..e68792e 100644 --- a/README.md +++ b/README.md @@ -340,6 +340,7 @@ Available targets: | [autoscaling\_group\_max\_size](#output\_autoscaling\_group\_max\_size) | The maximum size of the autoscale group | | [autoscaling\_group\_min\_size](#output\_autoscaling\_group\_min\_size) | The minimum size of the autoscale group | | [autoscaling\_group\_name](#output\_autoscaling\_group\_name) | The AutoScaling Group name | +| [autoscaling\_group\_tags](#output\_autoscaling\_group\_tags) | A list of tag settings associated with the AutoScaling Group | | [autoscaling\_policy\_scale\_down\_arn](#output\_autoscaling\_policy\_scale\_down\_arn) | ARN of the AutoScaling policy scale down | | [autoscaling\_policy\_scale\_up\_arn](#output\_autoscaling\_policy\_scale\_up\_arn) | ARN of the AutoScaling policy scale up | | [launch\_template\_arn](#output\_launch\_template\_arn) | The ARN of the launch template | diff --git a/docs/terraform.md b/docs/terraform.md index d24f79a..2ecacac 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -133,6 +133,7 @@ | [autoscaling\_group\_max\_size](#output\_autoscaling\_group\_max\_size) | The maximum size of the autoscale group | | [autoscaling\_group\_min\_size](#output\_autoscaling\_group\_min\_size) | The minimum size of the autoscale group | | [autoscaling\_group\_name](#output\_autoscaling\_group\_name) | The AutoScaling Group name | +| [autoscaling\_group\_tags](#output\_autoscaling\_group\_tags) | A list of tag settings associated with the AutoScaling Group | | [autoscaling\_policy\_scale\_down\_arn](#output\_autoscaling\_policy\_scale\_down\_arn) | ARN of the AutoScaling policy scale down | | [autoscaling\_policy\_scale\_up\_arn](#output\_autoscaling\_policy\_scale\_up\_arn) | ARN of the AutoScaling policy scale up | | [launch\_template\_arn](#output\_launch\_template\_arn) | The ARN of the launch template | diff --git a/outputs.tf b/outputs.tf index 5ca591c..6c16c98 100644 --- a/outputs.tf +++ b/outputs.tf @@ -18,6 +18,11 @@ output "autoscaling_group_name" { value = one(aws_autoscaling_group.default[*].name) } +output "autoscaling_group_tags" { + description = "A list of tag settings associated with the AutoScaling Group" + value = module.this.enabled ? aws_autoscaling_group.default[0].tag : [] +} + output "autoscaling_group_arn" { description = "ARN of the AutoScaling Group" value = one(aws_autoscaling_group.default[*].arn)