Symptoms:
The workflow fails sometimes (not always) with this error:
Using the layer in the function...
An error occurred (ResourceConflictException) when calling the UpdateFunctionConfiguration operation: The operation cannot be performed at this time. An update is in progress for resource: [functionARN]
And this happens just after the function code is updated, so I imagine that it is caused by the process trying to update the layer while the function is still updating.
Maybe it would be possible to retry or wait a couple seconds?