[英]Copy from S3 bucket in one account to S3 bucket in another account using Boto3 in AWS Lambda
[英]Aws copy data from one S3 bucket to another on same account using lambda python
我正在嘗試使用 lambda python 將數據從一個 S3 存儲桶復制到同一帳戶中的另一個存儲桶。 任何人都可以幫忙。
使用copy_object()
:
response = client.copy_object(
Bucket='string',
Key='string',
CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'VersionId': 'string'},
...
)
在Bucket
和Key
中指定目標,然后在CopySource
中指定源。
CopySource
最簡單的格式是: source-bucket/folder/foo.txt
如果您不熟悉編寫 Lambda 函數或使用 boto3,請告訴我們。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.