An AWS Lambda function copying S3 object to another S3 bucket when receiving object created event from SNS.
BUCKET
: (required) Destination bucketPREFIX
: (optional) Prefix prepended to object keyRECURSIVE
: (optional)SKIP
: (optional)
After s3://source/bar/baz/object
created, it will be copied to s3://destination/foo/object
with BUCKET
set to destination
and PREFIX
set to foo/
. If RECURSIVE
is set to 1
, the object will be copied to s3://destination/foo/bar/baz/object
. You can set SKIP
to bar/
and the object will be copied to s3://destination/foo/baz/object
.
Run pip install -r requirements-test.txt
and then run pytest
.