- Start LocalStack:
docker run \
--rm \
--name local-sqs \
-p 4566:4566 \
localstack/localstack
- Create an AWS profile for your local instance using AWS CLI:
aws configure --profile localstack
AWS Access Key ID [None]: test-key
AWS Secret Access Key [None]: test-secret
Default region name [None]: us-east-1
Default output format [None]: json
- Create an SQS locally
aws sqs create-queue --queue-name=greetings --profile localstack --endpoint-url=http://localhost:4566
- Add events to SQS
for i in {1..25}
do
aws sqs send-message --queue-url http://localhost:4566/000000000000/greetings --message-body "Greet $i" --profile localstack --endpoint-url=http://localhost:4566
done
This will add 25 test messages to the quote-requests queue.
./gradlew quarkusDev