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
demandé il y a 3 mois135 vues
1 réponse
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
EXPERT
répondu il y a 3 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions