philbooth · GitHub

As usual I forgot to include the example log output. This is what you see with the fixes applied:

Successfully parsed SQS message, queue=`https://sqs.us-east-1.amazonaws.com/927034868273/fxa-email-delivery-dev`, receipt_handle=`AQEBgaNZUdAKay9nfF4O8szg0IfmegXMcAUUeEXXoBvod0WRUYtYdtJn2dbT870c+tv+kkXheiJXyNnO7d3C+DRiBUgSoiQr33x0kG7m45InPWRz4kPtvRvg07qyfM751ou57yQT3229h5rzGtHcqVphW/+weN7o5gt/rVGW7RK8CWE+y+2rznqT+qbuMg00M2VJ1doZPEDTg3b+s+vHhH3YnSrps0OU+AaRS5sn/wmpFP2Sf4m2k9i7dPuUvDlyO6ytlaLH4NwOCAa1Q5Mf04BtVIp6Hd4Z0Y2uhWjXOATBSC1sy7/J9H2L+DDtI8uFvLDkJoAOIjCZLCmUXBZssiFQbczuy2XuJfu8F2YiSGQh3Blb96dXaORkOqQJIQITL7DWUq6pf2v7BpTRFmn9+f5Qgw==`, notification_type=`Delivery`
Successfully parsed SQS message, queue=`https://sqs.us-east-1.amazonaws.com/927034868273/fxa-email-complaint-dev`, receipt_handle=`AQEBlJxSZFPT/1FpSgXIEIqMXP8RYinu5kWynE8D6n3/rdkM85uxdXgtw00ofYZERZoHGNqvraR+wQiDscPsbTPqDBaVueIvHHX1X092fRTnDQ1zr1cTtYd8LR8H5Ds3JG5PTkSyc4vmF/BFYzJ31TKlIxtpqpVPcMIycxPBOclKt0/20dqjhFGIPb/ufDkCs3/Ohk7NcQnvaxPyiTEuJPxWzkKoaYB4VUgZWJ/dioFb9hFDRQVtEVEKwYoHGGHdTXTSIKTNCimHZlqypWsGYiDCvdrP54sgje0Sp+VH+B+UGKGqiY1+IGVqELuzY2wFOH1wB6V82uQfqKSkySbSMnkdf3EnqLmjw1vsUDGeCigLg+i8EzHJvW2vKLbfWggNY5t29LwFWvuX5VuaHEIUqd/oBg==`, notification_type=`Complaint`
Successfully parsed SQS message, queue=`https://sqs.us-east-1.amazonaws.com/927034868273/fxa-email-bounce-dev`, receipt_handle=`AQEBBSzeVSvyzjxlU43a+PM0fhbCvZC4aKNAPNrMGZHtexjKbyvQlomzdInpgRn/GqAfkqK8oWvLhqVOwIWesd0Xh9LKdbKcZXH4Bk0lLMHVjtJEBrW3HmULIk4gIl/UowUTJvo+DqVz46MIFDoy/xii1+xtkdgs0Wad0I/RXOUoq2I7ahSxDDMIukwTGXDS2OuXMrpjbnguk3cHF8uRwhpJzkH3H2xhkeANHS5WEqBDCE8a+0DW04kMN7dX8SaFGdZotdrvZLyyPyf3wxw9g8KIztfeiPrmTEQRH3iWEhpvxMJl6Cgmj3AlYrc7yJNuL898RaW7Z+ZiNjWIKu79viBQY4SHc0PNHnyLrsm/yG6ABYdrd4wzUAB/+wBtKm+CAWVFn1BG+fehHUC3cbLZsCU63A==`, notification_type=`Bounce`

If you want to test it out yourself, start up the queues process, then log in to the dev AWS console and find the Lambda function fxa-sendgrid-event-proxy. From the test dropdown in the top-right, select SendgridCatFacts and press the test button:

Screenshot of the lambda console in AWS showing a successful test run of fxa-sendgrid-event-proxy

Back in your terminal, you should see some success messages about successfully parsed notifications followed by some errors about outgoing queues not existing (we haven't created the outgoing queue in AWS yet).

Read the original on github.com ↗