Skip to content

Commit

Permalink
fix(AWS Lambda): Fix runtimeManagment handling (#11778)
Browse files Browse the repository at this point in the history
  • Loading branch information
KillDozerX2 committed Mar 7, 2023
1 parent 8e244d5 commit 8db2f4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/aws/package/compile/functions.js
Expand Up @@ -27,7 +27,7 @@ const defaultCors = {
};
const runtimeManagementMap = new Map([
['auto', 'Auto'],
['onFunctionUpdate', 'Function update'],
['onFunctionUpdate', 'FunctionUpdate'],
['manual', 'Manual'],
]);

Expand Down
Expand Up @@ -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`', () => {
Expand Down

0 comments on commit 8db2f4c

Please sign in to comment.