使用 curl 从 AmazonS3 存储桶下载文件

Download files from AmazonS3 bucket using curl

在 Travis CI 上构建期间,如何使用带有访问密钥和秘密密钥的 curl 从 AmazonS3 存储桶下载文件?

我不熟悉 Travis CI,但通过 URL 下载私人内容的唯一方法是生成 Amazon S3 pre-signed URLs,这是有时间限制的URL(因此每次都会更改)。

首选方法是使用 AWS Command-Line Interface (CLI) 下载,它通过存储在配置文件中的凭据管理安全性。