mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
23 lines
460 B
TypeScript
23 lines
460 B
TypeScript
import { vpc } from "./vpc";
|
|
// import { email } from "./email";
|
|
import { allSecrets } from "./secret";
|
|
import { postgres } from "./postgres";
|
|
|
|
export const bus = new sst.aws.Bus("Bus");
|
|
|
|
bus.subscribe("Event", {
|
|
vpc,
|
|
handler: "./packages/functions/src/event/event.handler",
|
|
link: [
|
|
// email,
|
|
postgres,
|
|
...allSecrets
|
|
],
|
|
timeout: "5 minutes",
|
|
permissions: [
|
|
{
|
|
actions: ["ses:SendEmail"],
|
|
resources: ["*"],
|
|
},
|
|
],
|
|
}); |