How to access S3 bucket(private) objects from application hosted in Elastic Beanstalk.


I need to access picture samples in S3 and display it in a dashboard, in an Angular based frontend. Public access is blocked for S3 bucket and its objects. Please suggest.

asked 3 months ago142 views
1 Answer


We need to configure an IAM role on the EC2 where ElasticBeanstalk is launched.
By setting the IAM policy required to access S3 for this IAM role, it is possible to retrieve S3 files from EC2.

Another method is to use CloudFront to make S3 images publicly available.

profile picture
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions