sqsworker

command module
v0.0.0-...-9ae445c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 20 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL