Closed mckamyk closed 5 days ago
Shamelessly hijacking your attention, sst dev bun dev
starts my dev server, but it appears sst dev
does not pass in the AWS_ACCESS_KEY_ID
and such needed.
running sst dev
and sst shell bun dev
works, as it appears sst shell ...
does load these secrets as env vars.
@mckamyk Hmm maybe open a new issue for that?
i'm not sure if this is a bug? ion eventbus will default to subscribing to all events (you can do a switch on the event)
if you do want to break it up into more detailed subscriptions you need to specify the filters as your example
I guess the reason I brought it up was because V2 EventBus had an extra argument in it.
bus.subscribe("fooEvent", { // I assumed "fooEvent" lead into pattern creation
handler: "path/to/foo.handler",
bind: [db],
});
Whereas in Ion, this appears to be more manual.
Fine by me, as long as the docs reflect it.
I know EventBus for aws isn't quite ready for production yet but just wanted to note this behavior.
I've been playing with getting them working with the existing versions and they do work, but I've noticed there doesn't seem to be any filters applied.
If I have this Event.
create handlers with
And in sst.config.ts...
If I then invoke FooEvent by doing...
I noticed both the
foo
andbar
subscribers will get invoked.To fix this I added the following to my
sst.config.ts