github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/appautoscaling_target.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_appautoscaling_target"
     4  sidebar_current: "docs-aws-resource-appautoscaling-target"
     5  description: |-
     6    Provides an Application AutoScaling ScalableTarget resource.
     7  ---
     8  
     9  # aws\_appautoscaling\_target
    10  
    11  Provides an Application AutoScaling ScalableTarget resource.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_appautoscaling_target" "ecs_target" {
    17    max_capacity       = 4
    18    min_capacity       = 1
    19    resource_id        = "service/clusterName/serviceName"
    20    role_arn           = "${var.ecs_iam_role}"
    21    scalable_dimension = "ecs:service:DesiredCount"
    22    service_namespace  = "ecs"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `max_capacity` - (Required) The max capacity of the scalable target.
    31  * `min_capacity` - (Required) The min capacity of the scalable target.
    32  * `resource_id` - (Required) The resource type and unique identifier string for the resource associated with the scalable target.
    33  For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, for example, `service/default/sample-webapp`.
    34  For Amazon EC2 Spot fleet requests, the resource type is `spot-fleet-request`, and the identifier is the Spot fleet request ID; for example, `spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE`.
    35  For Amazon EMR Cluster Instance Groups, the resource type is `instancegroup`, the identifier is the Cluster Id and the Instance Group Id; for example, `instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0`.
    36  * `role_arn` - (Required) The ARN of the IAM role that allows Application
    37  AutoScaling to modify your scalable target on your behalf.
    38  * `scalable_dimension` - (Required) The scalable dimension of the scalable target. The scalable dimension contains the service namespace, resource
    39  type, and scaling property, such as `ecs:service:DesiredCount` for the desired task count of an Amazon ECS service,
    40  `ec2:spot-fleet-request:TargetCapacity` for the target capacity of an Amazon EC2 Spot fleet request or
    41  `elasticmapreduce:instancegroup:InstanceCount` for the Instance count of an EMR Cluster Instance Group.
    42  * `service_namespace` - (Required) The AWS service namespace of the scalable target.
    43  Valid values are `ecs` for Amazon ECS services, `ec2` Amazon EC2 Spot fleet requests and `elasticmapreduce` for Amazon EMR Clusters.