We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7481349 commit f8eef99Copy full SHA for f8eef99
1 file changed
deployment/delete_lambda
@@ -71,6 +71,10 @@ aws cloudfront wait distribution-deployed --id "$DISTRIBUTION_ID"
71
72
echo "CloudFront distribution updated. Proceeding with Lambda function deletion..."
73
74
+# Adding the set +e command is necessary to ensure that the script does not terminate on an error,
75
+# allowing us to handle the exit code of the Lambda function deletion command manually.
76
+set +e
77
+
78
VERSIONS=$(aws lambda list-versions-by-function --function-name "$LAMBDA_ARN" --region "$REGION" | jq -r '.Versions[].Version')
79
for version in $VERSIONS; do
80
if [[ "$version" != "\$LATEST" ]]; then
0 commit comments