An automated reference implementation leveraging AWS Step Functions and AWS Media Services to deploy a scalable fault tolerant Video on demand workflow
Describe the bug
After a subsequent update to the stack yaml template ( specifically, the PriceClass parameter in CloudFront Distribution resource) a MediaPackage type origin named "vodMPOrigin" and an associated cache behavior with a path pattern "out/*" are getting deleted resulting with an "Access Denied" error message when trying to access .mp4 video files stored in S3 Bucket with a HLS URL link received from the workflow.
Convert it to YAML using AWS CloudFormation Template Designer
Configure Parameters - AllowedOrigins="*", EnableSns="Yes", EnableSqs="Yes", EnableMediaPackage="Yes", AdminEmail="example@example.com" ( Your Email address) , WorkflowTrigger="VideoFile", Glacier="DISABLED", AcceleratedTranscoding="DISABLED" and FrameCapture="No".
Deploy the template
Accept email subscription
Add .mp4 video file to the source S3 Bucket
Access the HLS URL video file, should download it to your machine
Update the template YAML stack ( change the CloudFront Distribution PriceClass from PriceClass_100 to PriceClass_200/PriceClass_All )
Access the HLS URL video file again, should receive Access Denied error message ( because of the resources unexpected deletion )
Expected behavior
I expect the template update not to cause any interruption to those resources and being able to access the .mp4 video files using the HLS URL link after subsequent updates to the template.
Please complete the following information about the solution:
[ ] Version: v6.1.2
[ ] Region: eu-west-1
[ ] Was the solution modified from the version published on this repository? No
[ ] If the answer to the previous question was yes, are the changes available on GitHub?
[ ] Have you checked your service quotas for the sevices this solution uses? Yes
[ ] Were there any errors in the CloudWatch Logs? No errors found
Screenshots
prior to the subsequent update (i.e., the initial setup ), those resources are created
Describe the bug After a subsequent update to the stack yaml template ( specifically, the PriceClass parameter in CloudFront Distribution resource) a MediaPackage type origin named "vodMPOrigin" and an associated cache behavior with a path pattern "out/*" are getting deleted resulting with an "Access Denied" error message when trying to access .mp4 video files stored in S3 Bucket with a HLS URL link received from the workflow.
To Reproduce
Expected behavior I expect the template update not to cause any interruption to those resources and being able to access the .mp4 video files using the HLS URL link after subsequent updates to the template.
Please complete the following information about the solution:
Screenshots prior to the subsequent update (i.e., the initial setup ), those resources are created![image](https://github.com/aws-solutions/video-on-demand-on-aws/assets/137990583/91ac9911-eeb5-4c5b-a9dd-3c9a6c76c458)
with those resources, accessing the HLS URL (https://{CloudFrontDistributionID}.cloudfront.net/out/v1/XXXXX/XXXX/XXXXX/index.m3u8) link results in downloading it to my local computer. after subsequent update, they are deleted from the distribution and upon accessing the HLS URL link of the .mp4 video file, an error message appears -![image](https://github.com/aws-solutions/video-on-demand-on-aws/assets/137990583/422f7b7e-8feb-4e0e-b23e-480fde62b7cc)