📜  如何将文件存储到文件夹存储桶 aws - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.467000             🧑  作者: Mango

代码示例1
#store the lambda Generate csv file into folder inside the bucket.
s3 = boto3.resource('s3')
s3.Object('bucket-name', 'folder-name/file-name.csv').put(Body=open('/tmp/file-name.csv', 'rb'))