Skip to content

Commit

Permalink
Se aplican referencias
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarsan01 committed Dec 10, 2019
1 parent 570f509 commit fcf0db4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@

#REFERENCE:https://hands-on.cloud/terraform-recipe-managing-auto-scaling-groups-and-load-balancers/
#aws_autoscaling_policy declares how AWS should change Auto Scaling Group instances count in case of aws_cloudwatch_metric_alarm.
#cooldown option is needed to give our infrastructure some time (300 seconds) before increasing Auto Scaling Group once more again.
#aws_cloudwatch_metric_alarm is very simple alarm, which will be fired, if total CPU utilization of all instances in our Auto Scaling Group will be greater or equal threshold (60% CPU utilization) during 60 seconds.

resource "aws_autoscaling_policy" "web_policy_up" {
name = "web_policy_up"
scaling_adjustment = 1
Expand Down

0 comments on commit fcf0db4

Please sign in to comment.