Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected resource deletions after subsequent updated to the template stack #203

Open
6 tasks
StavWhist opened this issue Jul 12, 2023 · 1 comment
Open
6 tasks
Labels

Comments

@StavWhist
Copy link

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 StavWhist added the bug label Jul 12, 2023
@raulmlamzn
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants