Im trying to do a simple upload of a .txt file with a few lines in it. I have used AWS' own example, but getting an error. I have searched for a few hours and tried 5-6 different upload methodes, all giving the same error message. What am I missing?
s3 = boto3.client('s3')
filename = 'file.txt' bucket_name = 'my-bucket'
s3.upload_file(filename, bucket_name, filename)
Error:
TypeError: expected string or buffer