mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 08:09:43 -05:00
fix(lambda): reject provisioned concurrency for SnapStart versions (#6433)
* fix(lambda): reject provisioned concurrency for SnapStart versions Reject provisioned concurrency admission and configured alias retargeting for published SnapStart versions before mutation. Preserve older version snapshots and unconfigured alias behavior. Signed-off-by: Andre Kurait <AndreKurait@gmail.com> * test(lambda): remove redundant SnapStart SDK fixture Retain the pool regressions and existing alias retarget SDK coverage as requested in review. Remove the duplicate SDK case and its custom zip construction. Signed-off-by: Andre Kurait <AndreKurait@gmail.com> --------- Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
1 parent
922e36a472
commit
01b388eca9
3 files changed
+74
No files matched your search
+4
@@ -496,6 +496,10 @@ public class ProvisionedConcurrencyPool implements Resettable {
|
||||
}
|
||||
|
||||
private static void validateSupportedTarget(LambdaFunction fn) {
|
||||
if ("PublishedVersions".equals(fn.getSnapStartApplyOn())) {
|
||||
throw new AwsException("ResourceConflictException", "The operation cannot be performed at this time. "
|
||||
+ "Provisioned Concurrency is not supported for SnapStart enabled functions", 409);
|
||||
}
|
||||
if (fn.isHotReload() || fn.isDurable()) {
|
||||
throw invalid("Provisioned concurrency is not supported for hot-reload or durable functions");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user