We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba41bed + 3aa0ebd commit 4fd2c2aCopy full SHA for 4fd2c2a
templates/pre_buildspec.yml.tpl
@@ -22,6 +22,7 @@ phases:
22
aws lambda update-function-code --function-name $FUNCTION_NAME --image-uri $IMAGE_URI || exit 1
23
aws lambda wait function-updated --function-name $FUNCTION_NAME
24
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
26
CURRENT_VERSION=$(echo "$(($TARGET_VERSION-1))")
27
echo $APPSPEC > appspec.json
28
sed -i -E 's/<FUNCTION_NAME>/'$FUNCTION_NAME'/' appspec.json
0 commit comments