From ef8976e6cea04c20955c03d53b3852123fcb7dc5 Mon Sep 17 00:00:00 2001 From: Sherman Hui <11592023+shermanhui@users.noreply.github.com> Date: Fri, 21 Oct 2022 09:13:38 -0700 Subject: [PATCH] aws-s3-presign: add page (#9217) --- pages/common/aws-s3-presign.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/aws-s3-presign.md diff --git a/pages/common/aws-s3-presign.md b/pages/common/aws-s3-presign.md new file mode 100644 index 0000000000..99089fb9e9 --- /dev/null +++ b/pages/common/aws-s3-presign.md @@ -0,0 +1,16 @@ +# aws s3 presign + +> Generate pre-signed URLs for Amazon S3 objects. +> More information: . + +- Generate a pre-signed URL for a specific S3 object that is valid for one hour: + +`aws s3 presign s3://{{bucket_name}}/{{path/to/file}}` + +- Generate a pre-signed URL valid for a specific lifetime: + +`aws s3 presign s3://{{bucket_name}}/{{path/to/file}} --expires-in {{duration_in_seconds}}` + +- Display help: + +`aws s3 presign help`