Skip to content

Commit 4fd2c2a

Browse files
authored
Merge pull request #9 from toluna-terraform/fix_inconsistant_deploy
Fix inconsistant deploy
2 parents ba41bed + 3aa0ebd commit 4fd2c2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/pre_buildspec.yml.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ phases:
2222
aws lambda update-function-code --function-name $FUNCTION_NAME --image-uri $IMAGE_URI || exit 1
2323
aws lambda wait function-updated --function-name $FUNCTION_NAME
2424
TARGET_VERSION=$(aws lambda publish-version --function-name $FUNCTION_NAME --query 'Version' --output text)
25+
aws lambda wait published-version-active --function-name $FUNCTION_NAME --qualifier TARGET_VERSION
2526
CURRENT_VERSION=$(echo "$(($TARGET_VERSION-1))")
2627
echo $APPSPEC > appspec.json
2728
sed -i -E 's/<FUNCTION_NAME>/'$FUNCTION_NAME'/' appspec.json

0 commit comments

Comments
 (0)