spinnaker-plugins / aws-lambda-deployment-plugin-spinnaker

Spinnaker plugin to support deployment of AWS Lambda functions via Spinnaker pipelines
Apache License 2.0
23 stars 22 forks source link

Function creation failure may lead to 409 Function Already exists #73

Closed eyal-mor closed 3 years ago

eyal-mor commented 3 years ago

When creating a Lambda function via AWS Lambda Deployment, the stage may fail for any reason which leads to a missing function in the Spinnaker cache. The failure is ungraceful.

Every subsequent run of the pipeline will fail with a 409 function already exists. The only way to fix this issue it to manually delete the Lambda Function from the AWS console and hope that it will work.

Seems related to - #72

Reproducing

Due the intermittent nature of this bug, there are no clear re-production steps. Try creating a creating Lambda functions until the bug is re-produced.

nimakaviani commented 3 years ago

we should not see any 409 errors in the plugin anymore. feel free to reopen if this happens again.