quickstart-amazon-eks icon indicating copy to clipboard operation
quickstart-amazon-eks copied to clipboard

Kubectl Apply Lambda is being called multiple times leading to deployment failure

Open mttwise opened this issue 4 years ago • 2 comments

Sometimes the apply lambda gets triggered multiple times causing the same manifest to be fed through twice. The issue appears to be intermittent, but has occurred more often recently. 50% of my deployments are seeing this issue on various stacks and have to be retried

The duplicate lambda run leads to an error like:

[ERROR] Exception: Error from server (AlreadyExists): error when creating "/tmp/manifest.yaml": namespaces "amazon-cloudwatch" already exists

Here are some sample logs...note that each lambda run was ~2 minutes apart and was triggered by the same CloudFormation stack deployment.

First Run of Lambda (Success) image

Second Run of Lambda (Failure) image

Stack Events: image

mttwise avatar Nov 19 '21 21:11 mttwise