aws-elastic-beanstalk-worker-spring-boot-spring-batch-template
aws-elastic-beanstalk-worker-spring-boot-spring-batch-template copied to clipboard
This is a batch processing application hosted on AWS.
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
- Edit the project POM file to generate WAR file
- Log into AWS and create new application
- Select Worker Environment
- Create a new IAM role and add your S3 bucket to the IAM policy
- Choose Tomcat environment and deploy the WAR file
- Set local disk to your deisred size, 8GB is the minimum
- SQS message should submit to /sqs endpoint
- Edit the permission of SQS queue to allow S3 event
- 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)
- Upload a file to your S3 bucket
- check the log and you should see print out
Reference
- http://kagamihoge.hatenablog.com/entry/2015/02/14/144238
- springbatchstudy
- run spring batch job from the controller