How to upload files on aws elastic beanstalk

+1 vote
I have deployed a web app deployed on EBS which runs in Java.

I want my users to upload their files on AWS> I am having trouble dealing with it. I don’t know how to handle this situation:

I can:

1.      Uploaded a project on EBS.

2.      I have created a DB using RDS.

Can someone help?
Apr 20, 2018 in Cloud Computing by brat_1
• 7,200 points
6,924 views

3 answers to this question.

0 votes

Yes, this is a manageable issue, do the following:

Store files using S3 and use an SDk for Java:

Refer this:  com.amazonaws.services.s3 putObject Interface AmazonS3.

You should be able to plug the code that is used for for file saving. This should be achieveable ie: One implementation for saving the file to the local disk and another for storing it in S3. And also your startup code 

answered Apr 20, 2018 by code_ninja
• 6,300 points
0 votes

In an Elastic Beanstalk environment, you can use Amazon EFS to create a shared directory that stores files uploaded or modified by users of your application. Your application can treat a mounted Amazon EFS volume like local storage, so you don't have to change your application code to scale up to multiple instances.

For more information about Amazon EFS, see the Amazon Elastic File System User Guide.

answered Aug 16, 2018 by Priyaj
• 58,020 points
0 votes
yes once you store it in (AWS) S3 bucket, get the credential details of it and create a credentials file

Much easier! :)
answered Sep 3, 2018 by bug_seeker
• 15,510 points

Related Questions In Cloud Computing

0 votes
1 answer

How to delete the files from AWS S3 except the recently 5 added/updated files?

Use AWS s3 rm command with multiple --exclude options as shown: aws ...READ MORE

answered Jul 30, 2018 in Cloud Computing by Gopalan
• 1,360 points
3,887 views
+1 vote
1 answer

How do you upload data to AWS Glacier?

Amazon Glacier provides a management console, which ...READ MORE

answered Oct 11, 2018 in Cloud Computing by DragonLord999
• 8,450 points
4,203 views
+3 votes
3 answers

Is there a way to install apache drill on an EMR cluster on AWS that is already Running?

It looks to be trying to get ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,780 points
2,419 views
+4 votes
2 answers

Amazon S3 Permission problem - How to set permissions for all files at once?

This can be done by setting the ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,200 points
4,107 views
0 votes
1 answer

What approach do I need to take to upload files to Lambda function and API Gateway services?

If you want to upload bigger than ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,200 points
857 views
0 votes
1 answer

Is there a way to transfer files between AWS s3 and ec2

The answer is a definite yes yes. ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,200 points
918 views
+1 vote
2 answers

How does Elastic Beanstalk and EC2 contribute to automation in AWS?

I hope this helps AWS Elastic Beanstalk is the ...READ MORE

answered Jul 26, 2018 in Cloud Computing by code_ninja
• 6,300 points
992 views
+4 votes
2 answers

How come AWS S3 is erasing my extension from PDF files?

I think the problem should be with ...READ MORE

answered Mar 27, 2018 in Cloud Computing by code_ninja
• 6,300 points
4,045 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP