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?

feita há 2 anos244 visualizações
2 Respostas
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
respondido há 2 anos
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas