When deployed, eventbridge doesn't direct messages...
# help
d
When deployed, eventbridge doesn't direct messages to my queue. While locally (with an admin privileged access keys), the whole flow works from bus to queue to lambda. The deployed server that pushes events to the bus uses the same keys as local dev. I've got this setup working a year ago, but can't recall now how to determine if my resources have the correct IAM permissions. Doesn't CDK already handle resource permissions when you set targets?
t
did you forget an await somewhere by any chance?
permissions errors you should see explicit errors and there shouldn't be a diff between local + prod
f
Yeah, ur local admin access keys are not used by
sst start
.
sst start
uses the same IAM credentials used by the actual Lambda function.
d
thanks guys. your assumptions helped me isolate the problem ever more. i ran my server locally with all the same prod credentials, and things worked fine! it seems to stem from the deployed server on fly.io for whatever reason. when it sends events, EB doesn't like it despite the 200 status code.
woot! think i found it. 😄 simple missing event bus name
wow what a long day just to be destroyed by some missing nullable variable. i should make that an invariant miss
thanks for always chiming in yall! this slack 100% grown by your efforts haha. it's amazing to see the growth
f
Glad it’s working!