我正在尝试从 S3 存储桶下载文件,我正在使用 AWS CLI 2,但收到以下错误。不确定什么是“路径”
aws s3 cp s3://my-bucket/my-folder --exclude "*" --include "*2020-06*" --recursive --profile mfa --region us-east-1
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: paths
Run Code Online (Sandbox Code Playgroud)
小智 10
的用法aws s3 cp是:
aws s3 cp <LocalPath> <S3Uri> or <S3Uri> <LocalPath> or <S3Uri> <S3Uri>
Run Code Online (Sandbox Code Playgroud)
您需要指定您的<LocalPath>,它应该是:
aws s3 cp s3://my-bucket/my-folder YOUR_LOCAL_PATH ...
Run Code Online (Sandbox Code Playgroud)
参考: https: //docs.aws.amazon.com/cli/latest/reference/s3/cp.html
| 归档时间: |
|
| 查看次数: |
17191 次 |
| 最近记录: |