1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. apprunner
  5. AutoScalingConfiguration

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.apprunner.AutoScalingConfiguration

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Describes 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.

Create AutoScalingConfiguration Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AutoScalingConfiguration(name: string, args?: AutoScalingConfigurationArgs, opts?: CustomResourceOptions);
@overload
def AutoScalingConfiguration(resource_name: str,
                             args: Optional[AutoScalingConfigurationArgs] = None,
                             opts: Optional[ResourceOptions] = None)

@overload
def AutoScalingConfiguration(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             auto_scaling_configuration_name: Optional[str] = None,
                             max_concurrency: Optional[int] = None,
                             max_size: Optional[int] = None,
                             min_size: Optional[int] = None,
                             tags: Optional[Sequence[_root_inputs.CreateOnlyTagArgs]] = None)
func NewAutoScalingConfiguration(ctx *Context, name string, args *AutoScalingConfigurationArgs, opts ...ResourceOption) (*AutoScalingConfiguration, error)
public AutoScalingConfiguration(string name, AutoScalingConfigurationArgs? args = null, CustomResourceOptions? opts = null)
public AutoScalingConfiguration(String name, AutoScalingConfigurationArgs args)
public AutoScalingConfiguration(String name, AutoScalingConfigurationArgs args, CustomResourceOptions options)
type: aws-native:apprunner:AutoScalingConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args AutoScalingConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args AutoScalingConfigurationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args AutoScalingConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args AutoScalingConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AutoScalingConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AutoScalingConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AutoScalingConfiguration resource accepts the following input properties:

AutoScalingConfigurationName string
The 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.
MaxConcurrency int
The 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.
MaxSize int
The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
MinSize int
The 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.
Tags List<Pulumi.AwsNative.Inputs.CreateOnlyTag>
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
AutoScalingConfigurationName string
The 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.
MaxConcurrency int
The 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.
MaxSize int
The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
MinSize int
The 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.
Tags CreateOnlyTagArgs
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
autoScalingConfigurationName String
The 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.
maxConcurrency Integer
The 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.
maxSize Integer
The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
minSize Integer
The 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.
tags List<CreateOnlyTag>
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
autoScalingConfigurationName string
The 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.
maxConcurrency number
The 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.
maxSize number
The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
minSize number
The 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.
tags CreateOnlyTag[]
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
auto_scaling_configuration_name str
The 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.
max_concurrency int
The 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_size int
The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
min_size int
The 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.
tags Sequence[CreateOnlyTagArgs]
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
autoScalingConfigurationName String
The 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.
maxConcurrency Number
The 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.
maxSize Number
The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
minSize Number
The 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.
tags List<Property Map>
A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.

Outputs

All input properties are implicitly available as output properties. Additionally, the AutoScalingConfiguration resource produces the following output properties:

AutoScalingConfigurationArn string
The Amazon Resource Name (ARN) of this auto scaling configuration.
AutoScalingConfigurationRevision int
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
Id string
The provider-assigned unique ID for this managed resource.
Latest bool
It'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.
AutoScalingConfigurationArn string
The Amazon Resource Name (ARN) of this auto scaling configuration.
AutoScalingConfigurationRevision int
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
Id string
The provider-assigned unique ID for this managed resource.
Latest bool
It'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.
autoScalingConfigurationArn String
The Amazon Resource Name (ARN) of this auto scaling configuration.
autoScalingConfigurationRevision Integer
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
id String
The provider-assigned unique ID for this managed resource.
latest Boolean
It'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.
autoScalingConfigurationArn string
The Amazon Resource Name (ARN) of this auto scaling configuration.
autoScalingConfigurationRevision number
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
id string
The provider-assigned unique ID for this managed resource.
latest boolean
It'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.
auto_scaling_configuration_arn str
The Amazon Resource Name (ARN) of this auto scaling configuration.
auto_scaling_configuration_revision int
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
id str
The provider-assigned unique ID for this managed resource.
latest bool
It'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.
autoScalingConfigurationArn String
The Amazon Resource Name (ARN) of this auto scaling configuration.
autoScalingConfigurationRevision Number
The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
id String
The provider-assigned unique ID for this managed resource.
latest Boolean
It'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.

Supporting Types

CreateOnlyTag
, CreateOnlyTagArgs

Key
This property is required.
Changes to this property will trigger replacement.
string
The key name of the tag
Value
This property is required.
Changes to this property will trigger replacement.
string
The value of the tag
Key
This property is required.
Changes to this property will trigger replacement.
string
The key name of the tag
Value
This property is required.
Changes to this property will trigger replacement.
string
The value of the tag
key
This property is required.
Changes to this property will trigger replacement.
String
The key name of the tag
value
This property is required.
Changes to this property will trigger replacement.
String
The value of the tag
key
This property is required.
Changes to this property will trigger replacement.
string
The key name of the tag
value
This property is required.
Changes to this property will trigger replacement.
string
The value of the tag
key
This property is required.
Changes to this property will trigger replacement.
str
The key name of the tag
value
This property is required.
Changes to this property will trigger replacement.
str
The value of the tag
key
This property is required.
Changes to this property will trigger replacement.
String
The key name of the tag
value
This property is required.
Changes to this property will trigger replacement.
String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi