This is a simple example client for writing and reading to and from an AWS managed SQS server, written in Java.
This example code has been sourced from the AWS documentation for interacting with SQS queues in Java.
Installation pre-requisites for running this demo are:
- Java
- Maven build and project management tool
- Docker for running local demo
- AWS CLI
- Make for using the pre-built make file
Additionally, you will need to configure your LocalStack after installation. This is done with the command:
aws configure --profile localstackThen enter your settings as follows:
AWS Access Key ID: 123
AWS Secret Access Key: 123
Default region name: ap-southeast-2
Default output format:Once all the installations are complete and the localstack profile has been configured you can run the demo using
make demoThis will:
- Run the localstack SQS server in Docker
- Install necessary packages
- Run either the local or remote demo depending on which function is called in the main function of the App