-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding outputs for the autoscaling group
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
# AWS EC2 AUTO SCALING GROUP | ||
# --------------------------------------------------------------------------------------------------------------------- | ||
output "asg_id" { | ||
description = "The autoscaling group id." | ||
value = aws_autoscaling_group.asg.id | ||
} | ||
output "asg_arn" { | ||
description = "The ARN for this AutoScaling Group." | ||
value = aws_autoscaling_group.asg.arn | ||
} | ||
output "asg_availability_zones" { | ||
description = "The availability zones of the autoscale group." | ||
value = aws_autoscaling_group.asg.availability_zones | ||
} | ||
output "asg_min_size" { | ||
description = "The minimum size of the autoscale group." | ||
value = aws_autoscaling_group.asg.min_size | ||
} | ||
output "asg_max_size" { | ||
description = "The maximum size of the autoscale group." | ||
value = aws_autoscaling_group.asg.max_size | ||
} | ||
output "asg_default_cooldown" { | ||
description = "Time between a scaling activity and the succeeding scaling activity." | ||
value = aws_autoscaling_group.asg.default_cooldown | ||
} | ||
output "asg_name" { | ||
description = "The name of the autoscale group." | ||
value = aws_autoscaling_group.asg.name | ||
} | ||
output "asg_health_check_grace_period" { | ||
description = "Time after instance comes into service before checking health." | ||
value = aws_autoscaling_group.asg.health_check_grace_period | ||
} | ||
output "asg_health_check_type" { | ||
description = "\"EC2\" or \"ELB\". Controls how health checking is done." | ||
value = aws_autoscaling_group.asg.health_check_type | ||
} | ||
output "asg_desired_capacity" { | ||
description = "The number of Amazon EC2 instances that should be running in the group." | ||
value = aws_autoscaling_group.asg.desired_capacity | ||
} | ||
output "asg_launch_configuration" { | ||
description = "The launch configuration of the autoscale group." | ||
value = aws_autoscaling_group.asg.launch_configuration | ||
} | ||
output "asg_vpc_zone_identifier" { | ||
description = "(Optional) The VPC zone identifier." | ||
value = aws_autoscaling_group.asg.vpc_zone_identifier | ||
} | ||
output "asg_load_balancers" { | ||
description = "(Optional) The load balancer names associated with the autoscaling group." | ||
value = aws_autoscaling_group.asg.load_balancers | ||
} | ||
output "asg_target_group_arns" { | ||
description = "(Optional) list of Target Group ARNs that apply to this AutoScaling Group." | ||
value = aws_autoscaling_group.asg.target_group_arns | ||
} |