
Andrew Womeldorf
Software Engineer
TL;DR: Try the Coral library as a drop-in replacement for Cobra.
I wanted to make a CLI wrapper for an SDK I’ve been working on. I’ve used Cobra in the past, and it’s been very handy, but I remember having seen a “soft-fork” of it on HackerNews a while ago. It took a minute to find it, since I couldn’t remember if it was a replacement of Cobra or Viper, and the README confuses the issue a bit.
I have messages being placed in a Dead Letter Queue (DLQ) that I created. The AWS Lambda Function that processed these messages failed the messages more than the allowed number of times, and were therefore put into the DLQ.
According to the Lambda Docs:
Lambda sends the event to the dead-letter queue as-is, with additional information in attributes. And there should be some Attributes on the message:
RequestID (string) ErrorCode (Number) ErrorMessage (string) However, I don’t see those attributes.