Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix invocations of build().
  • Loading branch information
johnclyde committed Oct 9, 2017
commit 39c9138b4b5176a3acd73e7afb8ff1b007c9ed64
9 changes: 6 additions & 3 deletions aws_lambda/aws_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def deploy(src, config_file='config.yaml', requirements=False, local_package=Non
# folder then add the handler file in the root of this directory.
# Zip the contents of this folder into a single file and output to the dist
# directory.
path_to_zip_file = build(src, requirements, local_package)
path_to_zip_file = build(
src, config_file=config_file, requirements=requirements, local_package=local_package)

if function_exists(cfg, cfg.get('function_name')):
update_function(cfg, path_to_zip_file)
Expand All @@ -122,7 +123,8 @@ def deploy_s3(src, config_file='config.yaml', requirements=False, local_package=
# folder then add the handler file in the root of this directory.
# Zip the contents of this folder into a single file and output to the dist
# directory.
path_to_zip_file = build(src, requirements, local_package)
path_to_zip_file = build(
src, config_file=config_file, requirements=requirements, local_package=local_package)

use_s3 = True
s3_file = upload_s3(cfg, path_to_zip_file, use_s3)
Expand Down Expand Up @@ -150,7 +152,8 @@ def upload(src, config_file='config.yaml', requirements=False, local_package=Non
# folder then add the handler file in the root of this directory.
# Zip the contents of this folder into a single file and output to the dist
# directory.
path_to_zip_file = build(src, requirements, local_package)
path_to_zip_file = build(
src, config_file=config_file, requirements=requirements, local_package=local_package)

upload_s3(cfg, path_to_zip_file)

Expand Down
4 changes: 3 additions & 1 deletion scripts/lambda
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def init(folder, minimal):
help='Install local package as well.', multiple=True,
)
def build(use_requirements, local_package):
aws_lambda.build(CURRENT_DIR, config_file=config_file, use_requirements, local_package)
aws_lambda.build(
CURRENT_DIR, config_file=config_file, use_requirements=use_requirements,
local_package=local_package)


@click.command(help='Run a local test of your function.')
Expand Down