From 4ee7275f21458522d55e5eecf68100c8a8d7d3da Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Mon, 29 Jan 2024 13:30:25 +0100 Subject: [PATCH] Improve dry run for lambda deployment --- tests/ci/team_keys_lambda/build_and_deploy_archive.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ci/team_keys_lambda/build_and_deploy_archive.sh b/tests/ci/team_keys_lambda/build_and_deploy_archive.sh index a55c1bb2b3b..5b377d3c184 100644 --- a/tests/ci/team_keys_lambda/build_and_deploy_archive.sh +++ b/tests/ci/team_keys_lambda/build_and_deploy_archive.sh @@ -35,6 +35,8 @@ if [ -f requirements.txt ]; then fi ( cd "$PACKAGE" && zip -9 -r ../"$PACKAGE".zip . ) -if [ -z "$DRY_RUN" ]; then - aws lambda update-function-code --function-name "$LAMBDA_NAME" --zip-file fileb://"$WORKDIR/$PACKAGE".zip +ECHO=() +if [ -n "$DRY_RUN" ]; then + ECHO=(echo Run the following command to push the changes:) fi +"${ECHO[@]}" aws lambda update-function-code --function-name "$LAMBDA_NAME" --zip-file fileb://"$WORKDIR/$PACKAGE".zip