Skip to content

Commit

Permalink
Add output for autoscaling group names for monitoring (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandella authored Feb 14, 2024
1 parent 6aba50c commit 550f3d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/terraform-aws-alternat/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ output "nat_gateway_eips" {

output "nat_instance_security_group_id" {
description = "NAT Instance Security Group ID."
value = aws_security_group.nat_instance.id
value = aws_security_group.nat_instance.id
}

output "autoscaling_group_names" {
description = "Name of autoscaling groups for NAT instances."
value = [
for asg in aws_autoscaling_group.nat_instance
: asg.name
]
}

0 comments on commit 550f3d9

Please sign in to comment.