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 5dbf742 + 4ecb8c6 commit 967e577Copy full SHA for 967e577
templates/pre_buildspec.yml.tpl
@@ -23,7 +23,7 @@ phases:
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))")
+ CURRENT_VERSION=$(aws lambda get-alias --function-name $FUNCTION_NAME --name live --query 'FunctionVersion' --output text)
27
echo $APPSPEC > appspec.json
28
sed -i -E 's/<FUNCTION_NAME>/'$FUNCTION_NAME'/' appspec.json
29
sed -i -E 's/<CURRENT_VERSION>/'$CURRENT_VERSION'/' appspec.json
0 commit comments