Skip to content

Instantly share code, notes, and snippets.

@ondrej-kvasnovsky
Last active March 5, 2018 22:14
Show Gist options
  • Save ondrej-kvasnovsky/a75a76e1334910b36f2678404badb953 to your computer and use it in GitHub Desktop.
Save ondrej-kvasnovsky/a75a76e1334910b36f2678404badb953 to your computer and use it in GitHub Desktop.
Create Auto Scaling Group Policy - using Average Network Out metric type
resource "aws_autoscaling_policy" "myservice-asg-policy" {
name = "myservice-asg-policy"
policy_type = "TargetTrackingScaling"
target_tracking_configuration {
predefined_metric_specification {
predefined_metric_type = "ASGAverageNetworkOut"
}
target_value = 800000000
}
autoscaling_group_name = "${module.myservice.asg_name}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment