Amazon web services 将文件从web解压并复制到s3存储桶

Amazon web services 将文件从web解压并复制到s3存储桶,amazon-web-services,curl,amazon-s3,amazon-ec2,Amazon Web Services,Curl,Amazon S3,Amazon Ec2,我正在尝试将文件直接从web复制到s3 bucket 我想将上述链接中的2019年3月数据解压并复制到s3 bucket。您只需编写一个shell脚本,它将执行以下操作: curl -O https://www.ncua.gov/files/publications/analysis/call-report-data-2019-03.zip 或 这将把zip文件下载到您的终端上。然后使用以下命令将其解压缩: unzip call-report-data-2019-03.zip 然后使用下面

我正在尝试将文件直接从web复制到s3 bucket


我想将上述链接中的2019年3月数据解压并复制到s3 bucket。

您只需编写一个shell脚本,它将执行以下操作:

curl -O https://www.ncua.gov/files/publications/analysis/call-report-data-2019-03.zip

这将把zip文件下载到您的终端上。然后使用以下命令将其解压缩:

unzip call-report-data-2019-03.zip
然后使用下面的命令将其发送到S3:

aws s3 cp call-report-data-2019-03 s3://<bucket-name> --recursive
aws s3 cp call-report-data-2019-03 s3://--递归
如果还需要什么,请告诉我

aws s3 cp call-report-data-2019-03 s3://<bucket-name> --recursive