ldsc webcam
1.0.0
incoming/*
s3:ObjectCreated
eventEnvironment values passed to the lambdas come from SSM or the local environment. SSM values are stored in the form /${service}/${stage}/${NAME}
.
Copy .env
to .env.${stage}
and fill in the blanks.
To upload an image locally execute the fragment below taking care to use values which point to an actual S3 resource.
$ npx sls invoke local --function hello --data '{"Records":[{"s3":{"bucket":{"name":"ldscwebcam"},"object":{"key":"incoming/ldscwebcam__20180112.135711GMT.jpg"}}}]}'
$ npx deploy --stage=<stage|production>
Err, ?. Maybe next time.