Files
tldr/pages.zh/common/aws-s3-presign.md

16 lines
494 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# aws s3 预签名
> 为 Amazon S3 对象生成预签名 URL。
> 更多信息:<https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/presign.html>。
- 为特定 S3 对象生成一个有效期为一小时的预签名 URL
`aws s3 presign s3://{{bucket_name}}/{{path/to/file}}`
- 生成一个有效期为特定时间的预签名 URL
`aws s3 presign s3://{{bucket_name}}/{{path/to/file}} --expires-in {{duration_in_seconds}}`
- 显示帮助:
`aws s3 presign help`