AWS CodeDeploy
User Guide (API Version 2014-10-06)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

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 Qualifiers, choose the alias used in your CodeDeploy deployment.

  5. From Additional Version, 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 and test.

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