aws-cli - 尝试使用 AWS CLI 2 从 S3 复制时出错,需要以下参数 : paths

标签 aws-cli

我正在尝试从 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/

相关文章:

json - 如何根据JMESPath中的两个条件选择数组中的元素?

linux - 如何仅显示来自 aws s3 ls 命令的文件?

aws-cli - ECS CLI - 您不能为需要服务相关角色的服务指定 IAM 角色

amazon-web-services - 如何在 aws-cli 上的 dynamodb 中返回项目

amazon-web-services - 有没有一种方法可以将一个 AWS CLI 命令的输出作为另一个命令的输入?

amazon-web-services - 自动释放未使用的 Elastic IPS 的方法

amazon-web-services - AWS CLI - JMESPath 查询以按标签查找 vpc-id

shell - 我的 AWS CLI 无法使用 sudo

amazon-s3 - 过滤 S3 列表对象结果以查找匹配模式的键

bash - 如何将同一个 AMI 同时复制到多个区域?