This repo implements secure media delivery at edge (Amazon CloudFront), with 3 different variants
- Using JWT Token.
- Some scripts are copied and modified from https://github.com/aws-solutions/secure-media-delivery-at-the-edge-on-aws
- Using CloudFront Signed URL
- Some scripts are copied and modified from https://github.com/aws-samples/amazon-cloudfront-protecting-hls-manifest-with-signed-url
- Using Akamai Edge Auth
- Scripts copied and modified from https://github.com/akamai/EdgeAuth-Token-Node
- Modify secure-media-cloudfront-dist.ts
- Choose one of three stacks available
- Prepare the origin configuration, i.e. HTTP or S3 origin.
- The examples in secure-media-cloudfront-dist.ts are using S3 and MediaPackage origin that are deployed from
- VOD on AWS Foundation, origin in S3
- VOD on AWS, origin in MediaPackage
- You can follow corresponding documentation to deploy those solutions
- The examples in secure-media-cloudfront-dist.ts are using S3 and MediaPackage origin that are deployed from
- Define your keys
- See the example in secure-media-cloudfront-dist.ts
- Optionally, set the example manifests for your testing
- Once configuration is complete, deploy
cdk deploy --all --require-approval never