Set up Datastore for S3 Archive, with Role Based credentials

조회 수: 3 (최근 30일)
Kevin
Kevin 2024년 4월 23일
댓글: Kevin 2024년 8월 12일
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
Piyush Kumar
Piyush Kumar 2024년 5월 15일
편집: Piyush Kumar 2024년 5월 15일
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 2024년 8월 12일
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?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by