Files
netris-nestri/infra/bus.ts
Wanjohi 7ecc068466 feat(infra): Use a shared VPC (#218)
## Description
The scope of this PR is to add a shared VPC for everyone on the team.
2025-03-26 06:29:25 +03:00

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: ["*"],
},
],
});