Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 804 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 804 Bytes

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