Sample code to create an existing document in Nuxeo from an existing blob in S3.
Sample invocation:
mariana$ md5 /Users/mariana/Downloads/FooFigthers.pdf MD5 (/Users/mariana/Downloads/FooFigthers.pdf) = 1a29c592b09ee7725415efa354907426
mariana$ aws s3api put-object --bucket mariana --key 1a29c592b09ee7725415efa354907426 --body /Users/mariana/Downloads/FooFigthers.pdf --content-type application/pdf --metadata title=FooFighters.pdf
{ "ETag": ""1a29c592b09ee7725415efa354907426"" }
This creates the following document in Nuxeo:
File default-domain/UserWorkspaces/Administrator/FooFighters.pdf ... application/pdf FooFighters.pdf 9d77cb1.blob 1a29c592b09ee7725415efa354907426