https://github.com/rdquispe/localstack-sqs
https://github.com/rdquispe/localstack-sqs
aws-sqs docker-compose localstack shell-script
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rdquispe/localstack-sqs
- Owner: rdquispe
- Created: 2021-10-09T20:52:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-09T20:57:17.000Z (over 4 years ago)
- Last Synced: 2025-01-05T22:42:42.223Z (over 1 year ago)
- Topics: aws-sqs, docker-compose, localstack, shell-script
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LocalStack SQS
https://onexlab-io.medium.com/localstack-sqs-a0c36fd13108
## Run docker
```
docker-compose -f docker-compose-local.yml up && docker-compose rm -fsv
```
## Run initialize_queue (after docker-compose up)
```sh
chmod +x initialize_queue.sh
./initialize_queue.sh
```
## Create SQS Queue Locally
```
aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name onexlab
```
## List SQS Queue
```
aws --endpoint-url=http://localhost:4566 sqs list-queues
```
## Create SQS Queue Message
```
aws --endpoint-url=http://localhost:4566 sqs send-message --queue-url http://localhost:4566/000000000000/onexlab --message-body 'Welcome to SQS queue by Onexlab'
```
## Read SQS Queue Messages
```
aws --endpoint-url=http://localhost:4566 sqs receive-message --queue-url http://localhost:4566/000000000000/onexlab
```
## Delete SQS Queue
```
aws --endpoint-url=http://localhost:4566 sqs delete-queue --queue-url http://localhost:4566/000000000000/onexlab
```