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
feita há 3 meses136 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 3 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas