https://serverless-stack.com/ logo
#sst
Title
# sst
a

Adrián Mouly

06/08/2022, 9:27 PM
Hey guys, I’m using EventBridge connected to SQS, and I need to set
message group id
, but it doesn’t work. I have this config on my EB Rule:
Copy code
targets: {
          targetOne: {
            type: 'queue',
            queue: subsystemFinishedQueue,
            cdk: {
              target: {
                retryAttempts: 1,
                messageGroupId: '$.detail.surveyQuestionId',
              },
            },
          },
        },
The problem is, the message-group-id it’s sent as string, not containing the parsed information from the message.
In the SQS Record is sent
'$.detail.surveyQuestionId'
instead of sending the proper value like
abc123
.
Maybe I have to put it like how is in the message body, and not the enveloped event ?
f

Frank

06/08/2022, 10:00 PM
Came across this SO post.. is it possible to set a dynamic group id?
a

Adrián Mouly

06/08/2022, 11:06 PM
I think so.
That is not saying is not.
Right?
Forget it.
Looks like is NOT possible.
2 Views