mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Improve dry run for lambda deployment
This commit is contained in:
parent
bd5529dda1
commit
4ee7275f21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user