command
module
Version:
v0.0.0-...-9ae445c
Opens a new window with list of versions in this module.
Published: Feb 21, 2023
License: MIT
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Reference implementation for SQS worker using the kyoo library
Content
- Installs localstack - a fully functional local AWS cloud stack
- Sets up some services and connects them
- AWS S3 Bucket Notification to SQS queue via SNS topic
Usage
Start localstack and execute setup steps
docker-compose up -d
Commands
Run SQS worker
export $(cat sqsworker.env | xargs)
go build && ./sqsworker
Upload image to S3 bucket
docker-compose run setup awslocal s3 cp /test/images/image.jpg s3://local-kyoo-bucket/image.jpg
Get messages from SQS queue
docker-compose run setup awslocal sqs receive-message --queue-url "http://localhost:4576/queue/kyoo-images-queue" --max-number-of-messages 10
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.