Skip to content

Commit 02cf9bf

Browse files
authored
waiting for function update before layer update
1 parent 5364f80 commit 02cf9bf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ publish_function_code(){
3535
echo ${INPUT_LAMBDA_FUNCTION_NAME}
3636
zip -r code.zip . -x \*.git\*
3737
aws lambda update-function-code --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --zip-file fileb://code.zip
38+
echo "waiting for lambda function to be updated"
39+
aws lambda wait function-updated --function-name "${INPUT_LAMBDA_FUNCTION_NAME}"
3840
}
3941

4042
update_function_layers(){

0 commit comments

Comments
 (0)