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?

preguntada hace 2 años244 visualizaciones
2 Respuestas
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 hace 2 años
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 hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas