We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e879c8 commit e7b17e4Copy full SHA for e7b17e4
aws_lambda/aws_lambda.py
@@ -282,7 +282,7 @@ def update_function(cfg, path_to_zip_file):
282
client.update_function_code(
283
FunctionName=cfg.get('function_name'),
284
ZipFile=byte_stream,
285
- Publish=True
+ Publish=False
286
)
287
288
client.update_function_configuration(
@@ -294,6 +294,11 @@ def update_function(cfg, path_to_zip_file):
294
MemorySize=cfg.get('memory_size', 512)
295
296
297
+ # Publish last, so versions pick up eventually updated description...
298
+ client.publish_version(
299
+ FunctionName=cfg.get('function_name')
300
+ )
301
+
302
303
def function_exists(cfg, function_name):
304
"""Check whether a function exists or not"""
0 commit comments