- Newest
- Most votes
- Most comments
I apologize for the difficulty you're experiencing with the deployment of the Secure Media Delivery at the Edge on AWS solution. The error you're encountering suggests an issue with the CDK deployment process, specifically related to the maximum call stack size being exceeded.
To address this issue, you could try the following steps:
-
Ensure you're using the latest version of Node.js and CDK. The error message indicates that a newer version of CDK (2.162.0) is available. Try upgrading CDK by running
npm install -g aws-cdkas suggested in the error message. -
Clear your node_modules directory and reinstall dependencies. Sometimes, conflicting or corrupted dependencies can cause issues. Try deleting the node_modules folder and running
npm installagain. -
If the issue persists, you might want to try increasing the Node.js stack size. You can do this by setting the
--stack-sizeflag when running the CDK command, like this:node --stack-size=8192 npx cdk bootstrap.
Regarding your question about using the solution without DynamoDB and generating tokens directly from S3, it's important to note that the solution is designed to work with DynamoDB for storing and managing access tokens. Modifying the solution to work directly with S3 without using DynamoDB would require significant changes to the architecture and code of the solution.
The solution uses DynamoDB not just for storing video URLs, but also for managing access tokens, session information, and other metadata crucial for the content protection mechanism. Removing DynamoDB would require re-engineering the token generation and validation processes, which are core components of the solution.
If you're looking for a simpler approach, you might consider implementing a custom solution using CloudFront signed URLs or signed cookies, which can provide access control for your S3-hosted videos without the need for a separate database. However, this would not provide all the features of the Secure Media Delivery at the Edge solution, such as geo-restrictions and advanced session management.
For your specific use case, it might be beneficial to consult with AWS Support or consider engaging with AWS Professional Services to explore customization options that meet your requirements while maintaining the security and scalability benefits of the original solution.
Sources
CDK deployment - Secure Media Delivery at the Edge on AWS
Security - Secure Media Delivery at the Edge on AWS
Deploy this solution to protect your premium video content from unauthorized access when delivered through Amazon CloudFront - Secure Media Delivery at the Edge on AWS
Relevant content
- AWS OFFICIALUpdated 2 years ago
