I have a worker service running on an EC2 instance which needs to be triggered from my main application built using serverless and running in lambda’s. Initially I was going to use SQS to do this but the data could - in some cases - potentially be larger than the maximum size of an SQS message.
Therefore I’ve decided it could be better to create an endpoint for the worker service to hit when it received an SQS trigger (any better suggestions appreciated).
The simple way to do this would be to use basic auth but I’d rather not do that.
Is there a way in the serverless framework to make my endpoint only visible to certain AWS resources?