wishihadabettername
wishihadabettername

Reputation: 14751

Invoke S3 sync from a Python lambda with boto3

This is a follow-up to an earlier question I had. If possible, instead of calling the AWS CLI from a Python lambda, I'd like to use Boto3 (which has S3 capabilities). However, I don't see any sync functionality in the Boto3 S3 documentation (I expected it to be under Bucket or BucketLifecycle but I checked everywhere as well).

Is it possible then to invoke S3 sync from Boto?

Upvotes: 6

Views: 8062

Answers (1)

Mark B
Mark B

Reputation: 200446

Boto3 does not include s3 sync capabilities. That is only available via the AWS CLI tool. You can package the AWS CLI tool with your Python Lambda function by following the steps outlined in this answer.

Upvotes: 7

Related Questions