Skip to main content

auto_scaling_configurations

Creates, updates, deletes or gets an auto_scaling_configuration resource or lists auto_scaling_configurations in a region

Overview

Nameauto_scaling_configurations
TypeResource
DescriptionDescribes an AWS App Runner automatic configuration resource that enables automatic scaling of instances used to process web requests. You can share an auto scaling configuration across multiple services.
Idaws.apprunner.auto_scaling_configurations

Fields

NameDatatypeDescription
auto_scaling_configuration_arnstringThe Amazon Resource Name (ARN) of this auto scaling configuration.
auto_scaling_configuration_namestringThe customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
auto_scaling_configuration_revisionintegerThe revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
max_concurrencyintegerThe maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up to use more instances to process the requests.
max_sizeintegerThe maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
min_sizeintegerThe minimum number of instances that App Runner provisions for a service. The service always has at least MinSize provisioned instances. Some of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
latestbooleanIt's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. It's set to false otherwise. App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
tagsarrayA list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all auto_scaling_configurations in a region.

SELECT
region,
auto_scaling_configuration_arn,
auto_scaling_configuration_name,
auto_scaling_configuration_revision,
max_concurrency,
max_size,
min_size,
latest,
tags
FROM aws.apprunner.auto_scaling_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual auto_scaling_configuration.

SELECT
region,
auto_scaling_configuration_arn,
auto_scaling_configuration_name,
auto_scaling_configuration_revision,
max_concurrency,
max_size,
min_size,
latest,
tags
FROM aws.apprunner.auto_scaling_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<AutoScalingConfigurationArn>';

INSERT example

Use the following StackQL query and manifest file to create a new auto_scaling_configuration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.apprunner.auto_scaling_configurations (
AutoScalingConfigurationName,
MaxConcurrency,
MaxSize,
MinSize,
Tags,
region
)
SELECT
'{{ AutoScalingConfigurationName }}',
'{{ MaxConcurrency }}',
'{{ MaxSize }}',
'{{ MinSize }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.apprunner.auto_scaling_configurations
WHERE data__Identifier = '<AutoScalingConfigurationArn>'
AND region = 'us-east-1';

Permissions

To operate on the auto_scaling_configurations resource, the following permissions are required:

Create

apprunner:CreateAutoScalingConfiguration,
apprunner:DescribeAutoScalingConfiguration,
apprunner:TagResource

Read

apprunner:DescribeAutoScalingConfiguration

Delete

apprunner:DeleteAutoScalingConfiguration

List

apprunner:ListAutoScalingConfiguration