Update AWS access key for reading message from SQS
Create a new AWS IAM user with permission to read message from SQS. For example, Add the following policy AmazonSQSReadOnlyAccess or AmazonSQSFullAccess to IAM user
Create access key for IAM user
Update access key and secret in application.properties
Build & Run Docker image
Run mvn clean install
Extract jar file
cd target/
java -Djarmode=layertools -jar .\mac-boot-sqs-consumer-0.0.1-SNAPSHOT.jar extract
Build a docker image
docker build -t mac-boot-sqs-consumer:latest .
Run container
docker run -d -p 8080:8080 --name mac-boot-sqs-consumer mac-boot-sqs-consumer