For testing http endpoint for AWS SNS topic
-
How to run on local
- Add AWS credentials file with aws_access_key_id and aws_secret_access_key to ~/.aws
- Build project with maven
- Run the application
- Subscribe topic with endpoint http://yourhost:8080/topic-subscriber
- Test publish message to the topic with raw format
- Received message should be logged to the console
-
How to run with docker
- Pull image from repository with "docker pull monthonk/simple-sns-endpoint"
- Run with "docker run -e AWS_ACCESS_KEY_ID={access_key} -e AWS_SECRET_ACCESS_KEY={secret_key} -p 8080:8080 monthonk/simple-sns-endpoint"
- Subscribe topic with endpoint http://yourhost:8080/topic-subscriber
- Test publish message to the topic with raw format
- Received message should be logged to the console