Module: ecs-cloudwatch-autoscaling
Terraform module for creating alarms for tracking important changes and occurrences from ECS Services.
Usage
For a complete example, see examples/complete.
For automated tests of the complete example using bats
and Terratest
, see test.
module "ecs_cloudwatch_autoscaling" {
source = "cloudposse/ecs-cloudwatch-autoscaling/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
namespace = "eg"
stage = "staging"
name = "app"
service_name = "eg-staging-example-service"
cluster_name = "eg-staging-example-cluster"
min_capacity = 1
max_capacity = 2
scale_up_adjustment = 1
scale_up_cooldown = 60
scale_down_adjustment = -1
scale_down_cooldown = 300
}
Examples
For a complete usage example, see terraform-aws-ecs-web-app module.