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)

feita há 2 anos1582 visualizações
1 Resposta
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
ESPECIALISTA
kentrad
respondido há 2 anos

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