简体   繁体   中英

How to download from s3 bucket with ARN

I was give this info:

AWS s3 Bucket ci****a.open

Amazon Resource Name (ARN) arn:aws:s3:::ci****a.open

AWS Region US West (Oregon) us-west-2

how am I supposed to download the folder without Access Key ID and Secret Access Key? I tried with CLI and it still ask me Access Key ID and Secret Access Key. I usually use s3 browser, but it also ask for Access Key ID and Secret Access Key

I tried with CLI and it still ask me Access Key ID and Secret Access Key.

For CLI you have to use --no-sign-request for credentials to be skipped. This will only work if the objects and/or your bucket is public.

CLI S3 commands, such as cp require S3Url , not S3 arn:

s3://bucket-name

you can create it yourself from arn, as bucket-name will be in the arn. In your case it would be ci****a.open :

s3://ci****a.open

So you can try the following to copy everything to current working folder:

aws s3 cp s3://ci****a.open . --recursive --no-sign-request

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM