Last active
March 5, 2018 22:14
-
-
Save ondrej-kvasnovsky/a75a76e1334910b36f2678404badb953 to your computer and use it in GitHub Desktop.
Create Auto Scaling Group Policy - using Average Network Out metric type
This file contains hidden or 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
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