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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容