Skip to content

Commit 72d6c68

Browse files
committed
made dist directory configurable
1 parent c288798 commit 72d6c68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎aws_lambda/aws_lambda.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def deploy(src):
3131

3232
# Get the absolute path to the output directory and create it if it doesn't
3333
# already exist.
34-
path_to_dist=os.path.join(src, 'dist')
34+
dist_directory=cfg.get('dist_directory', 'dist')
35+
path_to_dist=os.path.join(src, dist_directory)
3536
mkdir(path_to_dist)
3637

3738
# Combine the name of the Lambda function with the current timestamp to use

‎aws_lambda/project_template/config.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ description: My first lambda function
99
aws_access_key_id:
1010
aws_secret_access_key:
1111

12+
# dist_directory: dist
1213
# timeout: 15
1314
# memory_size: 512

0 commit comments

Comments
(0)