https://serverless-stack.com/ logo
#sst
Title
# sst
l

Luke Wyman

07/17/2021, 11:35 PM
Does sst have this feature? - In the console, you can configure an API Gateway api to send its payload directly to an SQS queue with an SQS proxy (IOW, not using a Lambda to enqueue the message). Is there away to express this in an
sst.Stack
class?
f

Frank

07/18/2021, 2:14 AM
Hey @Luke Wyman, are you using the
sst.Api
or
sst.ApiGatewayV1Api
?
l

Luke Wyman

07/18/2021, 5:10 AM
I'm using
sst.Api
.
f

Frank

07/18/2021, 8:33 AM
SST doesn’t have a high level support for it yet. You can try this solution https://github.com/aws/aws-cdk/issues/10497#issuecomment-760125780
This example shows the EventBridge proxy, but I think you can change that to SQS SendMessage proxy.
Let me know if that works for you.
l

Luke Wyman

07/18/2021, 5:35 PM
Thanks, Frank. I don't desperately need it - I'm just experimenting with all the "Lego pieces" and different ways of fitting them together. I'd probably just go with an API -> Lambda -> SQS -> Lambda solution in real life, given how this works programmatically.
I've created this spikes repo, where I'm working through all the examples in the documentation in the
documentation-examples
folder, and then creating my own experiments as more complex use-cases based on the basics.
f

Frank

07/18/2021, 6:44 PM
Yup I opened an issue here https://github.com/serverless-stack/serverless-stack/issues/565 Feel free to come back to this if it becomes a blocker for u