uploading file to specific folder in S3 using boto3
I figured out my problem. I had the right idea with the /folder/
option in the key parameter area, however, I did not need the first /
Thank you all! This is essentially the same idea as hjpotter92's suggestion above.
You do not need to pass the Key value as an absolute path. The following should work:
upload_file('/tmp/' + filename, '<bucket-name>', 'folder/{}'.format(filename))