Difference between revisions of "Terraform resource: aws appautoscaling target"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
===ECS Example===
 
===ECS Example===
<pre>resource "aws_appautoscaling_target" "ecs_target" {
+
resource "aws_appautoscaling_target" "ecs_target" {
  max_capacity      = 4
+
  [[max_capacity]]       = 4
  min_capacity      = 1
+
  min_capacity      = 1
  resource_id        = "service/${aws_ecs_cluster.example.name}/${aws_ecs_service.example.name}"
+
  resource_id        = "service/${aws_ecs_cluster.example.name}/${aws_ecs_service.example.name}"
  scalable_dimension = "ecs:service:DesiredCount"
+
  scalable_dimension = "ecs:service:DesiredCount"
  service_namespace  = "ecs"
+
  service_namespace  = "ecs"
}</pre>
+
}
  
 
== See also ==
 
== See also ==

Revision as of 11:38, 20 September 2021

  • 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"
}

See also

  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_target
  • Advertising: