'Jenkins Lambda deployment causing ResourceConflictException

I am using the AWS Lambda Jenkins plugin.

Using the AWS Lambda deployment build step works fine initially for deploying the lambda.

However on subsequent calls of the Jenkins pipeline, I get the following error:

com.amazonaws.services.lambda.model.ResourceConflictException: The operation cannot be performed at this time. An update is in progress for resource: <lambda-resource-name>

Any solutions to this error? If no solutions, any alternatives for deploying with Jenkins?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source