how to store file into folder bucket aws

Solutions on MaxInterview for how to store file into folder bucket aws by the best coders in the world

showing results for - "how to store file into folder bucket aws"
Manuel
28 Jun 2017
1#store the lambda Generate csv file into folder inside the bucket.
2s3 = boto3.resource('s3')
3s3.Object('bucket-name', 'folder-name/file-name.csv').put(Body=open('/tmp/file-name.csv', 'rb'))