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)

posta 2 anni fa1582 visualizzazioni
1 Risposta
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
ESPERTO
kentrad
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande