From 7cfddff31433582ac031be0a168eba2d356d7ee9 Mon Sep 17 00:00:00 2001 From: ROSeaboyer Date: Thu, 21 Oct 2021 09:06:54 -0300 Subject: [PATCH] feat(AWS Lambda): Support CF funcs at `functions[].reservedConcurrency` (PR #10129) --- lib/plugins/aws/provider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index 1ef2bd533..f8a920269 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -14,6 +14,7 @@ const path = require('path'); const spawnExt = require('child-process-ext/spawn'); const ServerlessError = require('../../serverless-error'); const awsRequest = require('../../aws/request'); +const { cfValue } = require('../../utils/aws-schema-get-cf-value'); const deepSortObjectByKey = require('../../utils/deepSortObjectByKey'); const { progress, legacy, log } = require('@serverless/utils/log'); @@ -1270,7 +1271,7 @@ class AwsProvider { additionalProperties: false, }, provisionedConcurrency: { type: 'integer', minimum: 1 }, - reservedConcurrency: { type: 'integer', minimum: 0 }, + reservedConcurrency: cfValue({ type: 'integer', minimum: 0 }), role: { $ref: '#/definitions/awsLambdaRole' }, runtime: { $ref: '#/definitions/awsLambdaRuntime' }, tags: { $ref: '#/definitions/awsResourceTags' },