Skip to content

dinhnguyen7025/example-using-sqs-with-localstack

Repository files navigation

Project structures

.
├── README.md                           <-- This instructions file
├── Makefile                            <-- Make to automate build
├── bin                                 <-- binary Go files
├── docs/                               <-- user documents
├── cmd/                                <-- main packages
│   └── custom                          <-- custom lambda function
├── scripts/                            <-- executable build/deployment scripts
├── pkg/                                <-- main packages for exposable business logic.
├── go.mod/                             <-- go module
├── go.sum                              <-- module hash
└── template.yaml                       <-- SAM template

要求 (Requirements)

Setup process

  • run as following in order:
TMPDIR=/private$TMPDIR docker-compose up
  • build lambda function
make build-local
  • init custom stack in localstak
make setup-local

Push message to queue

  • Test push message to sqs queue
./scripts/send-message-to-queue.sh "Test message"

Cleanup

  • kill daemon which you launched, and clean up build artifacts.
make clean

Testing

  • Put file to bucket
awslocal s3 ls s3://custom-bucket
awslocal s3 ls s3://lambda-bucket

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published