Skip to content

Commit a3c720e

Browse files
committed
handle lambda function missing in script
1 parent 887d6c6 commit a3c720e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.ebextensions/lambda-function.config

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ packages:
1010
container_commands:
1111
update-random-name:
1212
command: /tmp/update-lambda.sh
13-
ignore_errors: true
1413
leader_only: true
1514

1615
files:
@@ -42,3 +41,8 @@ files:
4241
zip -r ../random-name.zip *
4342
aws lambda update-function-code --function-name random-name --zip-file fileb://../random-name.zip --region $REGION
4443
aws lambda update-function-configuration --function-name random-name --environment "{\"Variables\": {\"TOPIC_ARN\": \"$TOPIC\"} }" --region $REGION
44+
if [ $? -ne 0 ]
45+
then
46+
echo "Lambda function random-name not found"
47+
fi
48+
exit 0

0 commit comments

Comments
 (0)