<https://docs.serverless-stack.com/constructs/Topi...
# help
f
Hey @Jason S, which version of SST r u using?
j
For Cognito, I had to wrap the trigger objects in an array. I tried that here but got
Error: Invalid function definition for the "Subscriber_ImportTopic_0" Function
. I tried some different things to match the patter of the Cognito trigger with no luck.
k
@Jason S does this error in the example also happen with the newest SST version 1.2.15?
I used my dummy setup and the subscription filter deployed fine with 1.2.15 and left out the Table permissions. The deployment worked fine and the subscription filter was applied as expected
e.g.
https://docs.serverless-stack.com/constructs/v0/migration describes how to migrate from 0.x -> 1.x in case you feel like trying it
j
Well I cant not have the latest version. I'll give it a shot. Thanks for taking the time to support me.
k
@Jason S If you can't upgrade, then you need to follow the v0 docs In your case I expect, the error message is pointing to the requirement of having the subscribers contained in an Array
While I couldn't test it, my feeling is that this approach above should work for you according to the older documentation