amazon-web-servicesamazon-s3aws-cliwasabi-hot-cloud-storage

cli s3 syncing between buckets returns NoSuchTagSetError


here's what I did when syncing (config for wasabi, policy action contains s3:PutObject, s3:PutObjectAcl, s3:GetObject, s3:DeleteObject and all files are public except s3://backup-bucket/):

docker run --rm -it \
  -v ~/.aws:/root/.aws \
  amazon/aws-cli s3 sync \
  s3://source-bucket/ \
  s3://backup-bucket/ \
  --profile wasabi \
  --endpoint-url=https://s3.us-east-2.wasabisys.com

and it returned:

copy failed: s3://source-bucket/sample.txt to s3://backup-bucket/sample.txt
An error occurred (NoSuchTagSetError) when calling the GetObjectTagging
operation: There is no tag set associated with the bucket.

Solution

  • turns out I missed this part:

    --copy-props (string) Determines which properties are copied from the source S3 object.

    If --metadata-directive is set, the --copy-props parameter will be disabled and will have no affect on the transfer.