S3 File path description in the <> parenthesis

0

I learned from a Japanese third-party knowledge site that file share with an external entity can be achieved by a command into CLI(CloudShell) per below;

AWS S3 presign <object path> [--expires-in 3600]

So I entered from CloudShell as this to see a bash message.

[cloudshell-user@ip-10-0-86-157 ~]$ AWS S3 presign <yuzobasket/Practitioner.pdf> [--expires-in 3600]

bash: yuzobasket/Practitioner.pdf: No such file or directory

I have uploaded a file with a name to Practitioner.pdf from my client successfully into yuzobasket bucket.

What should I input in the < > as a path?

asked 2 years ago237 views
2 Answers
1

Hi,

Your command would be either of the two mentioned below:

aws s3 presign s3://yuzobasket/Practitioner.pdf --expires-in 3600 --region us-east-1
aws s3 presign yuzobasket/Practitioner.pdf --expires-in 3600 --region us-east-1

Change the region as required if the bucket is not in us-east-1.

--Syd

profile picture
Syd
answered 2 years ago
1

Have a look at https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html.

If you scroll to the bottom of the page you'll see some aws s3 presign examples

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions