Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Latest commit

 

History

History
24 lines (19 loc) · 1.16 KB

File metadata and controls

24 lines (19 loc) · 1.16 KB

AWS Elastic Beanstalk Worker Spring Boot with Spring Batch Template

This is a file batch processing application template hosted on AWS Elastic Beanstalk.

How to Run

  1. Edit the project POM file to generate WAR file
  2. Log into AWS and create new application
  3. Select Worker Environment
  4. Create a new IAM role and add your S3 bucket to the IAM policy
  5. Choose Tomcat environment and deploy the WAR file
  6. Set local disk to your deisred size, 8GB is the minimum
  7. SQS message should submit to /sqs endpoint
  8. Edit the permission of SQS queue to allow S3 event
  9. Edit the properties of your S3 bucket to generate ObjectCreadted(All) event to SQS queue which is created by the Elastic Beanstalk (Do not select the queue with "Dead" in name)
  10. Upload a file to your S3 bucket
  11. check the log and you should see print out

Reference

Have Fun :)