My goal is to take a large number of files held on S3 and be able to move them to dropbox programatically to avoid needing to store them locally and then manually upload.
It would appear that I can accomplish this with DropBox's Python API. Per the documentation listed here, and some additional searches on Google it seems rather straigthforward task.
import dropbox
db_key='aklKJHDKdDUMMYKEY'
dbx=dropbox.Dropbox(db_key) # create dropbox object
s3_path='https://s3.us-west-2.amazonaws.com/bucket/myfile.txt' #set s3 object path
drop_box_path='/root/folder1/myfile.txt' # set dropbox object path
dbx.files_save_url(drop_box_path, s3_path) # copy files from S3 to DropBox
However, running this will return an API error for invalid URL
ApiError: ApiError('4e02eb47d6343e2', SaveUrlError('invalid_url', None))
The URL looks to be stemming from the AWS side, not the DropBox side because I can fully connect to the DropBox folders and obtain information from them.
What am I missing here? I have tried both the object URL and the object SRI on amazon, as well as trying to tinker with the various formatting of the link itself ('using // instead of /, etc').
Or maybe there is an entirely different way to accomplish this goal?
I would prefer if this is possible without using a third party intermediary as listed here