Replies: 1 comment
-
I've managed to get wildcard functionality working in v2 but no luck in v3 yet. Hopefully someone can provide some migration guidance soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently trying to set up a Lambda which returns signed cookies for Cloudfront to access files on my S3. This works if I make requests to a single file but since I'm planning to use this for video streams, I need permission to an entire folder on my S3. The official Docs say that wildcards can only be used when signing cookies via Custom Policy.
Im currently using
@aws-sdk/cloudfront-signer
in version3.254.0
. If I use it without thepolicy
property and request a specific file, it works. So if I want to accesshttps://mycloudfront.com/path-to-file/file.m3u8
and useit works. However, when trying to set up a custom policy with
it fails with the
I've also tried to remove the
Resource
from the policy string but no luck. How am I supposed to use the Cookie Signer with a custom policy? unfortunately I could not find any documentation forv3
.Cheers, any help appreciated! 🙌
Beta Was this translation helpful? Give feedback.
All reactions