YouTube AWS Lambda Walkthrough
It requires you to deploy with a role that can access S3.
Then do make invoke
{
"req_id": "46ce6303-f0f3-48cd-9d80-118538f41458",
"msg": "Event Payload size.",
"size": "Total size of all buckets: 114.20 GB"
}
If you want to deploy via Docker do the following command:
https://github.com/awslabs/aws-lambda-rust-runtime#25-docker
# build and package deploy-ready artifact
$ docker run --rm \
-v ${PWD}:/code \
-v ${HOME}/.cargo/registry:/root/.cargo/registry \
-v ${HOME}/.cargo/git:/root/.cargo/git \
rustserverless/lambda-rust