mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
## Description Migrates to a neon account shared by the Nestrilabs organisation ## Related Issues <!-- List any related issues (e.g., "Closes #123", "Fixes #456") --> ## Type of Change - [ ] Bug fix (non-breaking change) - [ ] New feature (non-breaking change) - [ ] Breaking change (fix or feature that changes existing functionality) - [ ] Documentation update - [ ] Other (please describe): ## Checklist - [ ] I have updated relevant documentation - [ ] My code follows the project's coding style - [ ] My changes generate no new warnings/errors ## Notes for Reviewers <!-- Point out areas you'd like reviewers to focus on, questions you have, or decisions that need discussion --> ## Screenshots/Demo <!-- If applicable, add screenshots or a GIF demo of your changes (especially for UI changes) --> ## Additional Context <!-- Add any other context about the pull request here -->
20 lines
415 B
TypeScript
20 lines
415 B
TypeScript
import { email } from "./email";
|
|
import { allSecrets } from "./secret";
|
|
import { database } from "./database";
|
|
|
|
export const bus = new sst.aws.Bus("Bus");
|
|
|
|
bus.subscribe("Event", {
|
|
handler: "./packages/functions/src/event/event.handler",
|
|
link: [
|
|
database,
|
|
email,
|
|
...allSecrets],
|
|
timeout: "5 minutes",
|
|
permissions: [
|
|
{
|
|
actions: ["ses:SendEmail"],
|
|
resources: ["*"],
|
|
},
|
|
],
|
|
}); |