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?

已提問 2 年前檢視次數 244 次
2 個答案
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
已回答 2 年前
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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南