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
-
idoptional computed - string -
max_capacityrequired - number -
min_capacityrequired - number -
resource_idrequired - string -
role_arnoptional computed - string -
scalable_dimensionrequired - string -
service_namespacerequired - string
Explanation in Terraform Registry
Provides an Application AutoScaling ScalableTarget resource. To manage policies which get attached to the target, see the
aws_appautoscaling_policyresource.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_roleresource.
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
-
MaxCapacityrequired - Integer -
MinCapacityrequired - Integer -
ResourceIdrequired - String -
RoleARNrequired - String -
ScalableDimensionrequired - String -
ScheduledActionsoptional - List of ScheduledAction -
ServiceNamespacerequired - String -
SuspendedStateoptional - SuspendedState
Explanation in CloudFormation Registry
The
AWS::ApplicationAutoScaling::ScalableTargetresource 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.