Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit 965a755

Browse files
authored
Lambda: Update CapacityProviderArn for managed instances (#13702)
1 parent d32e212 commit 965a755

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

localstack-core/localstack/services/lambda_/provider.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,14 @@ def update_function_configuration(
14391439
Type="User",
14401440
)
14411441

1442+
default_config = CapacityProviderConfig(
1443+
LambdaManagedInstancesCapacityProviderConfig=LambdaManagedInstancesCapacityProviderConfig(
1444+
ExecutionEnvironmentMemoryGiBPerVCpu=2.0,
1445+
PerExecutionEnvironmentMaxConcurrency=16,
1446+
)
1447+
)
1448+
capacity_provider_config = merge_recursive(default_config, capacity_provider_config)
1449+
replace_kwargs["CapacityProviderConfig"] = capacity_provider_config
14421450
new_latest_version = dataclasses.replace(
14431451
latest_version,
14441452
config=dataclasses.replace(

0 commit comments

Comments
 (0)