Troubleshoot AWS Lambda deployment issues - AWS CodeDeploy

Troubleshoot AWS Lambda deployment issues

AWS Lambda deployments fail after manually stopping a Lambda deployment that does not have configured rollbacks

In some cases, the alias of a Lambda function specified in a deployment might reference two different versions of the function. The result is that subsequent attempts to deploy the Lambda function fail. A Lambda deployment can get in this state when it does not have rollbacks configured and is manually stopped. To proceed, use the AWS Lambda console to make sure the function is not configured to shift traffic between two versions:

  1. Sign in to the AWS Management Console and open the AWS Lambda console at

  2. From the left pane, choose Functions.

  3. Select the name of the Lambda function that is in your CodeDeploy deployment.

  4. From Aliases, choose the alias used in your CodeDeploy deployment, and then choose Edit.

  5. From Weighted alias, choose none. This ensures the alias is not configured to shift a percentage, or weight, of traffic to more than one version. Make a note of the version selected in Version.

  6. Choose Save.

  7. Open the CodeDeploy console and attempt a deployment of the version displayed in the drop-down menu in step 5.