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.
2 parents 5652ce8 + e7b17e4 commit 5cfc022Copy full SHA for 5cfc022
aws_lambda/aws_lambda.py
@@ -478,7 +478,7 @@ def update_function(cfg, path_to_zip_file):
478
client.update_function_code(
479
FunctionName=cfg.get('function_name'),
480
ZipFile=byte_stream,
481
- Publish=True,
+ Publish=False,
482
)
483
484
kwargs = {
@@ -507,6 +507,11 @@ def update_function(cfg, path_to_zip_file):
507
508
client.update_function_configuration(**kwargs)
509
510
+ # Publish last, so versions pick up eventually updated description...
511
+ client.publish_version(
512
+ FunctionName=cfg.get('function_name'),
513
+ )
514
+
515
516
def upload_s3(cfg, path_to_zip_file):
517
"""Upload a function to AWS S3."""
0 commit comments