How to download S3 file through Multi-Region Access Point (MRAP) using the AWS CLI?

0

Hi,

I'd like to access a specific file which I know the key of through the AWS Cli.
Before using MRAP, I simply had to do aws s3 cp s3://my-bucket/my-path/file.png ./file.png to download a specific file from within my private subnet (through a VPC Endpoint for S3).
Now that I've setup MRAP, I'd like to know if there is an easy way to achieve the same goal using AWS CLI or if I need to implement my own CLI for this specific purpose.

Thanks in advance!

(I couldn't tag this question properly, there are no tag for awscli or mrap)

已提問 2 年前檢視次數 1582 次
1 個回答
0

According to the documentation, the S3Uri does not support access point object ARNs.

The higher level s3 commands do not support access point object ARNs. For example, if the following was specified: s3://arn:aws:s3:us-west-2:123456789012:accesspoint/myaccesspoint/object/mykey the S3URI will resolve to the object key object/mykey

You can, however, use the s3api get-object using access points. See: Using access points with compatible Amazon S3 operations for examples.

See Configuring a Multi-Region Access Point for use with AWS PrivateLink also for endpoint support.

profile pictureAWS
專家
kentrad
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南