Skip to content

Commit

Permalink
refactor(AWS Lambda): Improve function deploy skip message (#11779)
Browse files Browse the repository at this point in the history
Closes: #11614

Co-authored-by: Midhun Rajendran <Midhun.Rajendran@aexp.com>
  • Loading branch information
rmidhun23 and Midhun Rajendran committed Mar 8, 2023
1 parent 8db2f4c commit ad8c24e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/plugins/aws/deploy-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,13 @@ class AwsDeployFunction {

if (!Object.keys(_.omit(params, 'FunctionName')).length) {
if (this.options['update-config']) log.notice();
const noticeMessage = [
'Function configuration did not change, and the update was skipped.',
' If you made changes to the service configuration and expected them to be deployed,',
' it most likely means that they can only be applied with a full service deployment.',
].join('');
log.notice.skip(
`Configuration did not change. Configuration update skipped. ${style.aside(
`${noticeMessage} ${style.aside(
`(${Math.floor(
(Date.now() - this.serverless.pluginManager.commandRunStartTime) / 1000
)}s)`
Expand Down

0 comments on commit ad8c24e

Please sign in to comment.