I have set up an on-demand video service in AWS. After uploading a video to the S3 input bucket, a Lambda function is automatically triggered, which does HLS streaming with the object to a specific folder in the output bucket. Already i have created cloudfront distribution. I want to retrieve the streamed URL from the output S3 bucket and receive a notification, So that i can then update the streammed URL in my mongoDb database ?
I want to retrieve the specific streamed URL from the output S3 bucket automatically as soon as the lambda function finishes the HLS streaming .What would be best practice here?