Created Lambda function using python script using boto3 library to connect with aws resources this lambda function will copy files from a source Amazon S3 bucket to a destination S3 bucket. Added a trigger in lambda function that will run when any object is uploaded in the source bucket, creates bucket policy, IAM role with least privilege access policy for lambda function accessing the cross-account S3 bucket.