command
module
Version:
v0.0.0-...-3f72e9c
Opens a new window with list of versions in this module.
Published: Nov 20, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
sqs-reader-service
Simple service which is reading data from SQS and saving to DynamoDB
Testing
Unit test
make test-unit
Test all
For running all the unit and integration tests you need docker.
The integration tests connecting to Localstack which is an AWS service emulator
Start localstack with docker-compose
docker-compose up
Create SQS queue and Dynamo table
scripts/localstack.sh
Run the tests
make test-all
Run the service locally
Start localstack with docker-compose
docker-compose up
Start the service
go run main.go
Run the service against AWS
- you need a proper AWS config in your machine
- create the env config in the config folder
my_env.yaml
- create an SQS queue on AWS and update your config with the queue name
- create a Dynamo table on AWS and update your config with the queue name (HASH = id field)
- export your ENV
export ENV=my_env
Start the service
go run main.go
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.