# Dae s3 consumer events distribution lambda

## Lambda should:

* be triggered on s3:ObjectCreated:* event

* get filepath from event

* extract Application name  from the /app=<APP_NAME> prefix

The files from /app=RTI should be copied to RTI → <env>-artistapp-notifications

The files from /app=Apollo should be copied to Apollo → <env>-apollo-notifications

* The lambda will need to create (and have appropriate permissions) a folder structure in the target bucket. The folder structures:

delphi → date/hour/app/event/version/

target → event/version/date/hour/
