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,080 points
529 views

3 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 5,710 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
• 56,120 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
• 14,970 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,260 points
54 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,360 points
60 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,730 points
212 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,080 points
29 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,080 points
28 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,080 points
28 views
0 votes
1 answer

How can install MongoDB on AWS?

Installing MongoDB Run these commands individually from the ...READ MORE

answered Aug 13, 2018 in Cloud Computing by bug_seeker
• 14,970 points
21 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
• 5,710 points
42 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
• 5,710 points
39 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.