Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deal with large WAR files in AWS?

What I have done ?

Developed a Web app using JSP which allows user to register , login and upload file to AWS S3. I am deploying this app to aws using Elastic Beanstalk by uploading war file of app. For login and register modules I have used RDS and it is working fine.

Problem

When I want to upload files to S3 , I need to use AWS SDK jar and its supporting JAR files in WEB app. When I finished with development part and exported war file , it was around 75 MB. So problem is that if I change anything to app , I need to upload this large size war to aws. Size of the war file is effected due to JAR files of AWS SDK.

What are the options to deal with such situation ?

like image 981
swapnil7 Avatar asked Nov 09 '22 20:11

swapnil7


1 Answers

Use build tools like Maven. This will ensure the dependency files downloaded in the server's local maven repository. So it makes the upload size of your project, reduced. Here is a official quick guide

like image 64
Thanga Avatar answered Nov 14 '22 21:11

Thanga