Hey guys, I’m using EventBridge connected to SQS,...
# sst
a
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
Came across this SO post.. is it possible to set a dynamic group id?
a
I think so.
That is not saying is not.
Right?
Forget it.
Looks like is NOT possible.