我正在尝试从 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
最佳答案
aws s3 cp
的用法是:
aws s3 cp <LocalPath> <S3Uri> or <S3Uri> <LocalPath> or <S3Uri> <S3Uri>
您需要指定您的 <LocalPath>
, 它应该是:aws s3 cp s3://my-bucket/my-folder YOUR_LOCAL_PATH ...
引用:https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html
关于aws-cli - 尝试使用 AWS CLI 2 从 S3 复制时出错,需要以下参数 : paths,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63184935/