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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠