From 3cbe3423b17a447ce329e7f2a27720e57f103cac Mon Sep 17 00:00:00 2001 From: Suriya Subramanian Date: Wed, 1 Nov 2023 05:27:43 +0530 Subject: [PATCH] Skip loading credentials for save-python-settings-file (#1008) * 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 --- zappa/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zappa/cli.py b/zappa/cli.py index a4997d9ea..c95859325 100755 --- a/zappa/cli.py +++ b/zappa/cli.py @@ -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