nylund / spring-aws-localstack

Example showing how to combine Spring Boot 2.0.0, Spring Cloud AWS and Localstack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple example showing how to combine Spring Boot 2.0, Spring Cloud AWS and Localstack for local development using Amazon SQS & SNS APIs.

Startup localstack:

git clone https://github.com/localstack/localstack
TMPDIR=/private$TMPDIR docker-compose up

Setup topics, queues and subscriptions:

aws --endpoint-url=http://localhost:4576 sqs create-queue --queue-name test-queue
aws --endpoint-url=http://localhost:4576 sqs create-queue --queue-name test-queue-sns
aws --endpoint-url=http://localhost:4575 sns create-topic --name test-topic
aws --endpoint-url=http://localhost:4575 sns subscribe --topic-arn arn:aws:sns:eu-west-1:123456789012:test-topic --protocol sqs --notification-endpoint arn:aws:sqs:eu-west-1:queue:test-queue-sns

References:

About

Example showing how to combine Spring Boot 2.0.0, Spring Cloud AWS and Localstack.

License:MIT License


Languages

Language:Java 40.7%Language:Shell 33.5%Language:Batchfile 25.8%