From 157ec8be875e7c1ec8fb13540bf848a6ba475c79 Mon Sep 17 00:00:00 2001 From: odeckmyn Date: Thu, 20 Jan 2022 16:48:42 +0100 Subject: [PATCH] Update uploader.py --- lambda_uploader/uploader.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lambda_uploader/uploader.py b/lambda_uploader/uploader.py index 28dfe70..ba8335b 100644 --- a/lambda_uploader/uploader.py +++ b/lambda_uploader/uploader.py @@ -85,6 +85,11 @@ def upload_existing(self, pkg): version = response.get('Version') # Publish the version after upload and config update if needed if self._config.publish: + + waiter = self._lambda_client.get_waiter('function_updated') + LOG.debug("Waiting for lambda function to be updated") + waiter.wait(FunctionName=self._config.name) + resp = self._lambda_client.publish_version( FunctionName=self._config.name, )