José Ribeiro
05/27/2021, 6:59 PMNo Lambda handlers are found in the app
when deploying my stack. Could this be caused by my creating an SNS topic that doesn’t have any (function) subscribers, only a SQS topic?José Ribeiro
05/27/2021, 7:00 PMconst api = new sst.Api(this, "Api", {
defaultFunctionProps: {
srcPath: "src",
},
routes: {
"POST /": "sns_publisher/lambda.handler",
},
});
const topic = new sst.Topic(this, "user-events");
const queue = new sst.Queue(this, "people-data-enrichment", {
consumer: {
function: {
handler: "people_data_enricher/lambda.handler",
srcPath: "src",
},
consumerProps: {
batchSize: 1,
},
},
});
topic.snsTopic.addSubscription(new SqsSubscription(queue.sqsQueue));
this.addOutputs({
ApiEndpoint: api.url,
});