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 5d9a6af commit 8352d02Copy full SHA for 8352d02
aws_lambda/aws_lambda.py
@@ -475,15 +475,14 @@ def upload_s3(cfg, path_to_zip_file):
475
os.environ.get('LAMBDA_FUNCTION_NAME') or cfg.get('function_name')
476
)
477
kwargs = {
478
- 'Bucket': cfg.get('bucket_name'),
+ 'Bucket': '{}'.format(buck_name),
479
'Key': cfg.get('s3_key', '{}.zip'.format(func_name)),
480
'Body': byte_stream
481
}
482
483
client.put_object(**kwargs)
484
print('Finished uploading {} to S3 bucket {}'.format(func_name, buck_name))
485
486
-
487
def function_exists(cfg, function_name):
488
"""Check whether a function exists or not"""
489
0 commit comments