Terraform resource: aws appautoscaling target
aws_appautoscaling_target
[1]
ECS Example
resource "aws_appautoscaling_target" "ecs_target" { max_capacity = 4 min_capacity = 1 resource_id = "service/${aws_ecs_cluster.example.name}/${aws_ecs_service.example.name}" scalable_dimension = "ecs:service:DesiredCount" service_namespace = "ecs" }
DynamoDB official example
resource "aws_appautoscaling_target" "dynamodb_index_read_target" { max_capacity = 100 min_capacity = 5 resource_id = "table/${aws_dynamodb_table.example.name}/index/${var.index_name}" scalable_dimension = "dynamodb:index:ReadCapacityUnits" service_namespace = "dynamodb" }
Related
See also
- Terraform AWS autoscaling:
aws_appautoscaling_policy, aws_appautoscaling_target, aws_autoscaling_group, asg_desired_capacity
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: