Skip to content

Commit 8a89013

Browse files
committed
feat: wait for completion
1 parent 4a954d5 commit 8a89013

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

experimental/aws-lambda-java-profiler/update-function.sh

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ aws lambda update-function-configuration \
3131
--function-name "$FUNCTION_NAME" \
3232
--layers $(aws lambda list-layer-versions --layer-name profiler-layer --query 'LayerVersions[0].LayerVersionArn' --output text)
3333

34+
# Wait for the function is updated
35+
aws lambda wait function-updated \
36+
--function-name "$FUNCTION_NAME"
37+
3438
# Add environment variables
3539
aws lambda update-function-configuration \
3640
--function-name "$FUNCTION_NAME" \

0 commit comments

Comments
 (0)