Skip to content

Commit

Permalink
Skip loading credentials for save-python-settings-file (#1008)
Browse files Browse the repository at this point in the history
* Skip loading credentials for save-python-settings-file

Loading AWS Credentials and creating AWS Client classes take a lot of
time. We do not need to do that for the save-python-settings-file
command.

* change list to tuple (list unnecessary)

---------

Co-authored-by: monkut <shane.cousins@gmail.com>
  • Loading branch information
suriya and monkut authored Oct 31, 2023
1 parent 7a9a5ad commit 3cbe342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zappa/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def positive_int(s):
else:
self.stage_env = self.vargs.get("stage_env")

if args.command == "package":
if args.command in ("package", "save-python-settings-file"):
self.load_credentials = False

self.command = args.command
Expand Down

0 comments on commit 3cbe342

Please sign in to comment.