Hi all - I’m looking to use SQS and wanted to get messages via internet through ngrok - does anyone know the best practice for this?
Hello,
You can expose SQS via ngrok following this steps:
Create a SQS queue:
awslocal sqs create-queue --queue-name localstack-queue
You will see the following output:
{
"QueueUrls": [
"http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/localstack-queue"
]
}
As Ngrok doesn’t support paths, you will need to expose it like this:
ngrok http --host-header=rewrite http://sqs.us-east-1.localhost.localstack.cloud:4566
Then you will be able to curl the SQS like this:
curl ngrok-url//000000000000/localstack-queue