Nine setups, three AWS runs: no traffic let broken code through, and the same rollback scenario showed Failed in all three runs, even after the good code was back.
I used AWS CodePipeline to release a Lambda function that failed every time it was called. The pipeline had an error alarm and was set to roll back if the check failed. The release still passed, and the broken code stayed live. Nobody had called the function, so there were no errors for the alarm to catch.
Then I sent five test calls to the broken version. This time, the alarm caught it and CodePipeline rolled back. The rollback shows Failed , but the good code was already live again. The live alias pointed to code with the same hash as before the release, and my final call worked. The rollback failed because it checked the same alarm, which was still in ALARM after the broken version's errors.
A Lambda check that called the new code directly didn't have this problem.…