fix(AWS Lambda): Fix runtimeManagment handling (#11778)

This commit is contained in:
Himanshu Pant 2023-03-07 13:51:55 +05:30 committed by GitHub
parent 8e244d5abc
commit 8db2f4cbc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ const defaultCors = {
};
const runtimeManagementMap = new Map([
['auto', 'Auto'],
['onFunctionUpdate', 'Function update'],
['onFunctionUpdate', 'FunctionUpdate'],
['manual', 'Manual'],
]);

View File

@ -1351,7 +1351,7 @@ describe('lib/plugins/aws/package/compile/functions/index.test.js', () => {
const { UpdateRuntimeOn } =
cfResources[naming.getLambdaLogicalId('foo')].Properties.RuntimeManagementConfig;
expect(UpdateRuntimeOn).to.equal('Function update');
expect(UpdateRuntimeOn).to.equal('FunctionUpdate');
});
it('should support `provider.versionFunctions: false`', () => {