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

0

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.

shikha
已提問 3 個月前檢視次數 136 次
1 個回答
0

Hello.

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.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-instanceprofile.html

Another method is to use CloudFront to make S3 images publicly available.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html

profile picture
專家
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南