video-on-demand-on-aws icon indicating copy to clipboard operation
video-on-demand-on-aws copied to clipboard

Unexpected resource deletions after subsequent updated to the template stack

Open StavWhist opened this issue 1 year ago • 1 comments

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

  • Download the CloudFormation template - https://docs.aws.amazon.com/solutions/latest/video-on-demand/deployment.html
  • Convert it to YAML using AWS CloudFormation Template Designer
  • Configure Parameters - AllowedOrigins="*", EnableSns="Yes", EnableSqs="Yes", EnableMediaPackage="Yes", AdminEmail="[email protected]" ( 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 image

image

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

StavWhist avatar Jul 12 '23 08:07 StavWhist

Hello StavWhist, Thanks for your feedback. We are currently reviewing this with our engineering team.

raulmlamzn avatar Jul 17 '23 14:07 raulmlamzn