published on Thursday, Jul 23, 2026 by Pulumi
published on Thursday, Jul 23, 2026 by Pulumi
Manages the scaling configuration for an AWS Lambda function. The scaling configuration defines the minimum and maximum number of execution environments that can be provisioned for the function, allowing you to control scaling behavior and resource allocation.
NOTE: This resource only works with Lambda functions that have a capacity provider configuration.
NOTE: Per common practice, this resource waits for the scaling configuration to converge before apply completes. It determines the min and max execution environments have settled using Requested and Applied scaling configs returned by Lambda. The API documentation is ambiguous about how these behave. From observation, Requested is only returned prior to settlement whereas Applied may be partially returned until settlement when it is fully returned. Should the observed behavior change, this resource will need to be updated to match.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambda.CapacityProvider("example", {
name: "example",
vpcConfig: {
subnetIds: exampleAwsSubnet.map(__item => __item.id),
securityGroupIds: [exampleAwsSecurityGroup.id],
},
permissionsConfig: {
capacityProviderOperatorRoleArn: exampleAwsIamRole.arn,
},
});
const exampleFunction = new aws.lambda.Function("example", {
code: new pulumi.asset.FileArchive("lambda_function.zip"),
name: "example",
role: exampleAwsIamRole.arn,
handler: "index.handler",
runtime: aws.lambda.Runtime.Python3d14,
memorySize: 32768,
publish: true,
publishTo: "LATEST_PUBLISHED",
capacityProviderConfig: {
lambdaManagedInstancesCapacityProviderConfig: {
capacityProviderArn: example.arn,
},
},
});
const exampleFunctionScalingConfig = new aws.lambda.FunctionScalingConfig("example", {
functionName: exampleFunction.name,
qualifier: "$LATEST.PUBLISHED",
functionScalingConfig: {
minExecutionEnvironments: 3,
maxExecutionEnvironments: 100,
},
});
import pulumi
import pulumi_aws as aws
example = aws.lambda_.CapacityProvider("example",
name="example",
vpc_config={
"subnet_ids": [__item["id"] for __item in example_aws_subnet],
"security_group_ids": [example_aws_security_group["id"]],
},
permissions_config={
"capacity_provider_operator_role_arn": example_aws_iam_role["arn"],
})
example_function = aws.lambda_.Function("example",
code=pulumi.FileArchive("lambda_function.zip"),
name="example",
role=example_aws_iam_role["arn"],
handler="index.handler",
runtime=aws.lambda_.Runtime.PYTHON3D14,
memory_size=32768,
publish=True,
publish_to="LATEST_PUBLISHED",
capacity_provider_config={
"lambda_managed_instances_capacity_provider_config": {
"capacity_provider_arn": example.arn,
},
})
example_function_scaling_config = aws.lambda_.FunctionScalingConfig("example",
function_name=example_function.name,
qualifier="$LATEST.PUBLISHED",
function_scaling_config={
"min_execution_environments": 3,
"max_execution_environments": 100,
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := lambda.NewCapacityProvider(ctx, "example", &lambda.CapacityProviderArgs{
Name: pulumi.String("example"),
VpcConfig: &lambda.CapacityProviderVpcConfigArgs{
SubnetIds: pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:3,24-46)),
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
},
PermissionsConfig: &lambda.CapacityProviderPermissionsConfigArgs{
CapacityProviderOperatorRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
},
})
if err != nil {
return err
}
exampleFunction, err := lambda.NewFunction(ctx, "example", &lambda.FunctionArgs{
Code: pulumi.NewFileArchive("lambda_function.zip"),
Name: pulumi.String("example"),
Role: pulumi.Any(exampleAwsIamRole.Arn),
Handler: pulumi.String("index.handler"),
Runtime: pulumi.String(lambda.RuntimePython3d14),
MemorySize: pulumi.Int(32768),
Publish: pulumi.Bool(true),
PublishTo: pulumi.String("LATEST_PUBLISHED"),
CapacityProviderConfig: &lambda.FunctionCapacityProviderConfigArgs{
LambdaManagedInstancesCapacityProviderConfig: &lambda.FunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigArgs{
CapacityProviderArn: example.Arn,
},
},
})
if err != nil {
return err
}
_, err = lambda.NewFunctionScalingConfig(ctx, "example", &lambda.FunctionScalingConfigArgs{
FunctionName: exampleFunction.Name,
Qualifier: pulumi.String("$LATEST.PUBLISHED"),
FunctionScalingConfig: &lambda.FunctionScalingConfigFunctionScalingConfigArgs{
MinExecutionEnvironments: pulumi.Int(3),
MaxExecutionEnvironments: pulumi.Int(100),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lambda.CapacityProvider("example", new()
{
Name = "example",
VpcConfig = new Aws.Lambda.Inputs.CapacityProviderVpcConfigArgs
{
SubnetIds = exampleAwsSubnet.Select(__item => __item.Id).ToList(),
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
},
PermissionsConfig = new Aws.Lambda.Inputs.CapacityProviderPermissionsConfigArgs
{
CapacityProviderOperatorRoleArn = exampleAwsIamRole.Arn,
},
});
var exampleFunction = new Aws.Lambda.Function("example", new()
{
Code = new FileArchive("lambda_function.zip"),
Name = "example",
Role = exampleAwsIamRole.Arn,
Handler = "index.handler",
Runtime = Aws.Lambda.Runtime.Python3d14,
MemorySize = 32768,
Publish = true,
PublishTo = "LATEST_PUBLISHED",
CapacityProviderConfig = new Aws.Lambda.Inputs.FunctionCapacityProviderConfigArgs
{
LambdaManagedInstancesCapacityProviderConfig = new Aws.Lambda.Inputs.FunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigArgs
{
CapacityProviderArn = example.Arn,
},
},
});
var exampleFunctionScalingConfig = new Aws.Lambda.FunctionScalingConfig("example", new()
{
FunctionName = exampleFunction.Name,
Qualifier = "$LATEST.PUBLISHED",
FunctionScalingConfigDetails = new Aws.Lambda.Inputs.FunctionScalingConfigFunctionScalingConfigArgs
{
MinExecutionEnvironments = 3,
MaxExecutionEnvironments = 100,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.CapacityProvider;
import com.pulumi.aws.lambda.CapacityProviderArgs;
import com.pulumi.aws.lambda.inputs.CapacityProviderVpcConfigArgs;
import com.pulumi.aws.lambda.inputs.CapacityProviderPermissionsConfigArgs;
import com.pulumi.aws.lambda.Function;
import com.pulumi.aws.lambda.FunctionArgs;
import com.pulumi.aws.lambda.inputs.FunctionCapacityProviderConfigArgs;
import com.pulumi.aws.lambda.inputs.FunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigArgs;
import com.pulumi.aws.lambda.FunctionScalingConfig;
import com.pulumi.aws.lambda.FunctionScalingConfigArgs;
import com.pulumi.aws.lambda.inputs.FunctionScalingConfigFunctionScalingConfigArgs;
import com.pulumi.asset.FileArchive;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new CapacityProvider("example", CapacityProviderArgs.builder()
.name("example")
.vpcConfig(CapacityProviderVpcConfigArgs.builder()
.subnetIds(exampleAwsSubnet.stream().map(element -> element.id()).collect(toList()))
.securityGroupIds(exampleAwsSecurityGroup.id())
.build())
.permissionsConfig(CapacityProviderPermissionsConfigArgs.builder()
.capacityProviderOperatorRoleArn(exampleAwsIamRole.arn())
.build())
.build());
var exampleFunction = new Function("exampleFunction", FunctionArgs.builder()
.code(new FileArchive("lambda_function.zip"))
.name("example")
.role(exampleAwsIamRole.arn())
.handler("index.handler")
.runtime("python3.14")
.memorySize(32768)
.publish(true)
.publishTo("LATEST_PUBLISHED")
.capacityProviderConfig(FunctionCapacityProviderConfigArgs.builder()
.lambdaManagedInstancesCapacityProviderConfig(FunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigArgs.builder()
.capacityProviderArn(example.arn())
.build())
.build())
.build());
var exampleFunctionScalingConfig = new FunctionScalingConfig("exampleFunctionScalingConfig", FunctionScalingConfigArgs.builder()
.functionName(exampleFunction.name())
.qualifier("$LATEST.PUBLISHED")
.functionScalingConfig(FunctionScalingConfigFunctionScalingConfigArgs.builder()
.minExecutionEnvironments(3)
.maxExecutionEnvironments(100)
.build())
.build());
}
}
Example coming soon!
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_lambda_capacityprovider" "example" {
name = "example"
vpc_config = {
subnet_ids = exampleAwsSubnet[*].id
security_group_ids = [exampleAwsSecurityGroup.id]
}
permissions_config = {
capacity_provider_operator_role_arn = exampleAwsIamRole.arn
}
}
resource "aws_lambda_function" "example" {
code = fileArchive("lambda_function.zip")
name = "example"
role = exampleAwsIamRole.arn
handler = "index.handler"
runtime = "python3.14"
memory_size = 32768
publish = true
publish_to = "LATEST_PUBLISHED"
capacity_provider_config = {
lambda_managed_instances_capacity_provider_config = {
capacity_provider_arn = aws_lambda_capacityprovider.example.arn
}
}
}
resource "aws_lambda_functionscalingconfig" "example" {
function_name = aws_lambda_function.example.name
qualifier = "$LATEST.PUBLISHED"
function_scaling_config = {
min_execution_environments = 3
max_execution_environments = 100
}
}
Create FunctionScalingConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FunctionScalingConfig(name: string, args: FunctionScalingConfigArgs, opts?: CustomResourceOptions);@overload
def FunctionScalingConfig(resource_name: str,
args: FunctionScalingConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FunctionScalingConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
function_scaling_config: Optional[FunctionScalingConfigFunctionScalingConfigArgs] = None,
qualifier: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[FunctionScalingConfigTimeoutsArgs] = None)func NewFunctionScalingConfig(ctx *Context, name string, args FunctionScalingConfigArgs, opts ...ResourceOption) (*FunctionScalingConfig, error)public FunctionScalingConfig(string name, FunctionScalingConfigArgs args, CustomResourceOptions? opts = null)
public FunctionScalingConfig(String name, FunctionScalingConfigArgs args)
public FunctionScalingConfig(String name, FunctionScalingConfigArgs args, CustomResourceOptions options)
type: aws:lambda:FunctionScalingConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_lambda_function_scaling_config" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FunctionScalingConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FunctionScalingConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionScalingConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionScalingConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionScalingConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var functionScalingConfigResource = new Aws.Lambda.FunctionScalingConfig("functionScalingConfigResource", new()
{
FunctionName = "string",
FunctionScalingConfigDetails = new Aws.Lambda.Inputs.FunctionScalingConfigFunctionScalingConfigArgs
{
MaxExecutionEnvironments = 0,
MinExecutionEnvironments = 0,
},
Qualifier = "string",
Region = "string",
Timeouts = new Aws.Lambda.Inputs.FunctionScalingConfigTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := lambda.NewFunctionScalingConfig(ctx, "functionScalingConfigResource", &lambda.FunctionScalingConfigArgs{
FunctionName: pulumi.String("string"),
FunctionScalingConfig: &lambda.FunctionScalingConfigFunctionScalingConfigArgs{
MaxExecutionEnvironments: pulumi.Int(0),
MinExecutionEnvironments: pulumi.Int(0),
},
Qualifier: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &lambda.FunctionScalingConfigTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "aws_lambda_function_scaling_config" "functionScalingConfigResource" {
lifecycle {
create_before_destroy = true
}
function_name = "string"
function_scaling_config = {
max_execution_environments = 0
min_execution_environments = 0
}
qualifier = "string"
region = "string"
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
var functionScalingConfigResource = new FunctionScalingConfig("functionScalingConfigResource", FunctionScalingConfigArgs.builder()
.functionName("string")
.functionScalingConfig(FunctionScalingConfigFunctionScalingConfigArgs.builder()
.maxExecutionEnvironments(0)
.minExecutionEnvironments(0)
.build())
.qualifier("string")
.region("string")
.timeouts(FunctionScalingConfigTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
function_scaling_config_resource = aws.lambda_.FunctionScalingConfig("functionScalingConfigResource",
function_name="string",
function_scaling_config={
"max_execution_environments": 0,
"min_execution_environments": 0,
},
qualifier="string",
region="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const functionScalingConfigResource = new aws.lambda.FunctionScalingConfig("functionScalingConfigResource", {
functionName: "string",
functionScalingConfig: {
maxExecutionEnvironments: 0,
minExecutionEnvironments: 0,
},
qualifier: "string",
region: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: aws:lambda:FunctionScalingConfig
properties:
functionName: string
functionScalingConfig:
maxExecutionEnvironments: 0
minExecutionEnvironments: 0
qualifier: string
region: string
timeouts:
create: string
delete: string
update: string
FunctionScalingConfig 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 FunctionScalingConfig resource accepts the following input properties:
- Function
Name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- Function
Scaling FunctionConfig Details Scaling Config Function Scaling Config - Scaling configuration block. See
functionScalingConfigBlock below. - Qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Function
Scaling Config Timeouts
- Function
Name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- Function
Scaling FunctionConfig Scaling Config Function Scaling Config Args - Scaling configuration block. See
functionScalingConfigBlock below. - Qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Function
Scaling Config Timeouts Args
- function_
name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- function_
scaling_ objectconfig - Scaling configuration block. See
functionScalingConfigBlock below. - qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts object
- function
Name String - Name or ARN of the Lambda function. Changing this forces a new resource.
- function
Scaling FunctionConfig Scaling Config Function Scaling Config - Scaling configuration block. See
functionScalingConfigBlock below. - qualifier String
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Scaling Config Timeouts
- function
Name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- function
Scaling FunctionConfig Scaling Config Function Scaling Config - Scaling configuration block. See
functionScalingConfigBlock below. - qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Scaling Config Timeouts
- function_
name str - Name or ARN of the Lambda function. Changing this forces a new resource.
- function_
scaling_ Functionconfig Scaling Config Function Scaling Config Args - Scaling configuration block. See
functionScalingConfigBlock below. - qualifier str
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Scaling Config Timeouts Args
- function
Name String - Name or ARN of the Lambda function. Changing this forces a new resource.
- function
Scaling Property MapConfig - Scaling configuration block. See
functionScalingConfigBlock below. - qualifier String
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the FunctionScalingConfig resource produces the following output properties:
- Function
Arn string - ARN of the Lambda function.
- Function
State string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- Id string
- The provider-assigned unique ID for this managed resource.
- Function
Arn string - ARN of the Lambda function.
- Function
State string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- Id string
- The provider-assigned unique ID for this managed resource.
- function_
arn string - ARN of the Lambda function.
- function_
state string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- id string
- The provider-assigned unique ID for this managed resource.
- function
Arn String - ARN of the Lambda function.
- function
State String - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- id String
- The provider-assigned unique ID for this managed resource.
- function
Arn string - ARN of the Lambda function.
- function
State string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- id string
- The provider-assigned unique ID for this managed resource.
- function_
arn str - ARN of the Lambda function.
- function_
state str - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- id str
- The provider-assigned unique ID for this managed resource.
- function
Arn String - ARN of the Lambda function.
- function
State String - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FunctionScalingConfig Resource
Get an existing FunctionScalingConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionScalingConfigState, opts?: CustomResourceOptions): FunctionScalingConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
function_arn: Optional[str] = None,
function_name: Optional[str] = None,
function_scaling_config: Optional[FunctionScalingConfigFunctionScalingConfigArgs] = None,
function_state: Optional[str] = None,
qualifier: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[FunctionScalingConfigTimeoutsArgs] = None) -> FunctionScalingConfigfunc GetFunctionScalingConfig(ctx *Context, name string, id IDInput, state *FunctionScalingConfigState, opts ...ResourceOption) (*FunctionScalingConfig, error)public static FunctionScalingConfig Get(string name, Input<string> id, FunctionScalingConfigState? state, CustomResourceOptions? opts = null)public static FunctionScalingConfig get(String name, Output<String> id, FunctionScalingConfigState state, CustomResourceOptions options)resources: _: type: aws:lambda:FunctionScalingConfig get: id: ${id}import {
to = aws_lambda_function_scaling_config.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Function
Arn string - ARN of the Lambda function.
- Function
Name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- Function
Scaling FunctionConfig Details Scaling Config Function Scaling Config - Scaling configuration block. See
functionScalingConfigBlock below. - Function
State string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- Qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Function
Scaling Config Timeouts
- Function
Arn string - ARN of the Lambda function.
- Function
Name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- Function
Scaling FunctionConfig Scaling Config Function Scaling Config Args - Scaling configuration block. See
functionScalingConfigBlock below. - Function
State string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- Qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Function
Scaling Config Timeouts Args
- function_
arn string - ARN of the Lambda function.
- function_
name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- function_
scaling_ objectconfig - Scaling configuration block. See
functionScalingConfigBlock below. - function_
state string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts object
- function
Arn String - ARN of the Lambda function.
- function
Name String - Name or ARN of the Lambda function. Changing this forces a new resource.
- function
Scaling FunctionConfig Scaling Config Function Scaling Config - Scaling configuration block. See
functionScalingConfigBlock below. - function
State String - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- qualifier String
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Scaling Config Timeouts
- function
Arn string - ARN of the Lambda function.
- function
Name string - Name or ARN of the Lambda function. Changing this forces a new resource.
- function
Scaling FunctionConfig Scaling Config Function Scaling Config - Scaling configuration block. See
functionScalingConfigBlock below. - function
State string - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- qualifier string
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Scaling Config Timeouts
- function_
arn str - ARN of the Lambda function.
- function_
name str - Name or ARN of the Lambda function. Changing this forces a new resource.
- function_
scaling_ Functionconfig Scaling Config Function Scaling Config Args - Scaling configuration block. See
functionScalingConfigBlock below. - function_
state str - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- qualifier str
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Function
Scaling Config Timeouts Args
- function
Arn String - ARN of the Lambda function.
- function
Name String - Name or ARN of the Lambda function. Changing this forces a new resource.
- function
Scaling Property MapConfig - Scaling configuration block. See
functionScalingConfigBlock below. - function
State String - State of the function after the scaling configuration was applied. This reflects the state reported by the most recent create or update and is not refreshed on read.
- qualifier String
Qualifier for the scaling configuration. Valid values:
$LATEST.PUBLISHEDto target the latest published version, or a specific numeric version number (e.g.,1). Changing this forces a new resource.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts Property Map
Supporting Types
FunctionScalingConfigFunctionScalingConfig, FunctionScalingConfigFunctionScalingConfigArgs
- Max
Execution intEnvironments - Maximum number of execution environments that can be provisioned for the function.
- Min
Execution intEnvironments - Minimum number of execution environments to maintain for the function.
- Max
Execution intEnvironments - Maximum number of execution environments that can be provisioned for the function.
- Min
Execution intEnvironments - Minimum number of execution environments to maintain for the function.
- max_
execution_ numberenvironments - Maximum number of execution environments that can be provisioned for the function.
- min_
execution_ numberenvironments - Minimum number of execution environments to maintain for the function.
- max
Execution IntegerEnvironments - Maximum number of execution environments that can be provisioned for the function.
- min
Execution IntegerEnvironments - Minimum number of execution environments to maintain for the function.
- max
Execution numberEnvironments - Maximum number of execution environments that can be provisioned for the function.
- min
Execution numberEnvironments - Minimum number of execution environments to maintain for the function.
- max_
execution_ intenvironments - Maximum number of execution environments that can be provisioned for the function.
- min_
execution_ intenvironments - Minimum number of execution environments to maintain for the function.
- max
Execution NumberEnvironments - Maximum number of execution environments that can be provisioned for the function.
- min
Execution NumberEnvironments - Minimum number of execution environments to maintain for the function.
FunctionScalingConfigTimeouts, FunctionScalingConfigTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Identity Schema
Required
functionName(String) Name or ARN of the Lambda function.qualifier(String) Qualifier for the scaling configuration.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import Lambda Function Scaling Config using the functionName and qualifier separated by a comma (,). For example:
$ pulumi import aws:lambda/functionScalingConfig:FunctionScalingConfig example my-function,$LATEST.PUBLISHED
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Jul 23, 2026 by Pulumi