Reputation: 2527
I have a react frontend on s3 and a python backend on lambda. I need to implement asynchronous processing and am finding the best way to do this. Would it be possible for my react frontend to subscribe to an aws sns topic while it being on s3? Or does that require it have a server always running?
Upvotes: 1
Views: 972
Reputation: 5888
You could link the SNS topic to an SQS queue. You could make React consume the queue (using a Cognito token to provide credentials for it).
This way you could limit your surface but still allow appropriate access to the resources.
The direct answer to your question: No, you can't connect React directly to SNS.
Upvotes: 4