AWS Application Auto Scaling Target
This page shows how to write Terraform and CloudFormation for Application Auto Scaling Target and write them securely.
aws_appautoscaling_target (Terraform)
The Target in Application Auto Scaling can be configured in Terraform with the resource name aws_appautoscaling_target
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
id
optional computed - string -
max_capacity
required - number -
min_capacity
required - number -
resource_id
required - string -
role_arn
optional computed - string -
scalable_dimension
required - string -
service_namespace
required - string
Explanation in Terraform Registry
Provides an Application AutoScaling ScalableTarget resource. To manage policies which get attached to the target, see the
aws_appautoscaling_policy
resource.NOTE: The Application Auto Scaling service automatically attempts to manage IAM Service-Linked Roles when registering certain service namespaces for the first time. To manually manage this role, see the
aws_iam_service_linked_role
resource.
AWS::ApplicationAutoScaling::ScalableTarget (CloudFormation)
The ScalableTarget in ApplicationAutoScaling can be configured in CloudFormation with the resource name AWS::ApplicationAutoScaling::ScalableTarget
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
MaxCapacity
required - Integer -
MinCapacity
required - Integer -
ResourceId
required - String -
RoleARN
required - String -
ScalableDimension
required - String -
ScheduledActions
optional - List of ScheduledAction -
ServiceNamespace
required - String -
SuspendedState
optional - SuspendedState
Explanation in CloudFormation Registry
The
AWS::ApplicationAutoScaling::ScalableTarget
resource specifies a resource that Application Auto Scaling can scale, such as an AWS::DynamoDB::Table or AWS::ECS::Service resource.Note If the resource that you want Application Auto Scaling to scale is not yet created in your account, add a dependency on the resource when registering it as a scalable target using the DependsOn attribute. For more information, see RegisterScalableTarget in the Application Auto Scaling API Reference.