Set up Datastore for S3 Archive, with Role Based credentials

3 visualizaciones (últimos 30 días)
Kevin
Kevin el 23 de Abr. de 2024
Comentada: Kevin el 12 de Ag. de 2024
I have an AWS S3 Archive and would like to access data. However, the permissions to access the S3 archive are Role Based, not individual accounts. In that case, how do I set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY?? Thanks.
  4 comentarios
Piyush Kumar
Piyush Kumar el 15 de Mayo de 2024
Editada: Piyush Kumar el 15 de Mayo de 2024
Hi Kevin,
If the permissions to access the S3 archive are Role-Based, you would not need to set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for each user. Instead, you may create an IAM role that has the necessary permissions and attach it to your EC2 instance. This way, any application running on the instance will have the necessary permissions to access the S3 archive.
If you want to access S3 from EC2, these documentations should help -
Kevin
Kevin el 12 de Ag. de 2024
We have an IAM role that is used for the instance and I can access the S3 bucket using AWS CLI. I successfully copied an file from the S3 bucket to my local drive on my instance. When I try to copy the same file from MATLAB using copyfile(s3file,localDir) I keep getting the following error: A low level error has occurred. The s3file is the bucketpath. Any advice on how to copy data from an S3 and access h5 file content when we have the IAM role attached to the instance?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by