简体   繁体   English

Aws 使用 lambda python 将数据从一个 S3 存储桶复制到同一帐户上的另一个存储桶

[英]Aws copy data from one S3 bucket to another on same account using lambda python

I am trying to copy data from one S3 bucket to another in same account using lambda python.我正在尝试使用 lambda python 将数据从一个 S3 存储桶复制到同一帐户中的另一个存储桶。 Can anyone help.任何人都可以帮忙。

Use copy_object() :使用copy_object()

response = client.copy_object(
    Bucket='string',
    Key='string',
    CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'VersionId': 'string'},
    ...
)

Specify the destination in Bucket and Key , then specify the source in CopySource .BucketKey中指定目标,然后在CopySource中指定源。

The easiest format for CopySource is: source-bucket/folder/foo.txt CopySource最简单的格式是: source-bucket/folder/foo.txt

Let us know if you are unfamiliar with writing Lambda functions or using boto3.如果您不熟悉编写 Lambda 函数或使用 boto3,请告诉我们。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用AWS Lambda中的Boto3将一个帐户中的S3存储桶复制到另一个帐户中的S3存储桶 - Copy from S3 bucket in one account to S3 bucket in another account using Boto3 in AWS Lambda Python 中的 AWS Lambda 将新文件复制到另一个 s3 存储桶 - AWS Lambda in Python to copy new files to another s3 bucket 使用 AWS lambda 将文件从一个 s3 存储桶移动到 AWS 中的另一个存储桶 - Move files from one s3 bucket to another in AWS using AWS lambda 如何使用 python boto3 将文件和文件夹从一个 S3 存储桶复制到另一个 S3 - how to copy files and folders from one S3 bucket to another S3 using python boto3 AWS Lambda 尝试将文件从 S3 存储桶复制到另一个 S3 存储桶时出现无效存储桶名称错误 - Invalid bucket name error when AWS Lambda tries to copy files from an S3 bucket to another S3 bucket 如何使用 AWS Lambda 函数将文件从 AWS S3 存储桶复制到 EC2 linux 机器 - How to copy files from AWS S3 bucket to EC2 linux machine using AWS Lambda Functions 如何使用python boto3将s3对象从一个存储桶复制到另一个存储桶 - how to copy s3 object from one bucket to another using python boto3 最简单的 lambda function 将文件从一个 s3 存储桶复制到另一个存储桶 - Simplest lambda function to copy a file from one s3 bucket to another 使用 python 在 AWS S3 上将文件从一个文件夹复制到另一个文件夹 - copy files from one folder to another on AWS S3 with python 根据将文件从一个 S3 存储桶复制到另一个存储桶的清单文件触发 AWS Lambda function - Trigger AWS Lambda function based on a manifest file which copies files from one S3 bucket to another
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM