I'm upgrading a queue processing system that previously used RabbitMQ.
I'm currently importing the dead letter and exponential backoff functionality we had in place with RabbitMQ, however I seem to be encountering a couple of issues.
The primary issue being, that when I create a new subscription with a dead letter policy, it seem to not have the associated permissions required in order for Google to forward messages to my dead letter subscription.
As seen below when inspecting the subscription details, google has highlighted that the pubsub service account for the project needs the publisher role and the subscriber role in order to publish and forward to the dead letter topic.
The option is given in the UI to add these, however I need to have this handled entirely via my consumer that I'm running, as this needs to be an automated process as these consumers are run by SupervisorD in the background.
Does anyone have any idea what exactly I'm missing, I've gone through all the documentation, but it's not entirely clear, I've tried adding the permissions mentioned in IAM to the associated member, but no dice.