Nimas Anggarini
Nimas Anggarini

Reputation: 45

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

Upvotes: 3

Views: 3068

Answers (1)

Marcin
Marcin

Reputation: 238051

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

Upvotes: 6

Related Questions