Can we generate a pre-sign url for protected cdn to access s3 using cdn public key and cdn private key in k6

I need to access S3 objects that are behind a protected CDN. I have the CDN public key, CDN private key, the S3 URL, and the path of the object, but I don’t know how to generate a pre-signed URL for the S3 object. I checked the Grafana k6 documentation, but it requires the “accessKeyId” and “secretAccessKey”, which I don’t have. I need an urgent solution.

If I do have the accessKeyId , secretAccessKey and sessionToken , i am getting an error “ERRO[0002] TypeError: Cannot read property ‘endsWith’ of undefined or null
at value (webpack://k6-jslib-aws/./src/internal/signature.ts:277:18(229))
at file:///C:/Users/z004nhey/Desktop/ci_proj_k6/auth0Utility/pre-signedURL.js:44:27(72) executor=per-vu-iterations scenario=default source=stacktrace”

not working in both ways

Hi @tjishant10 :wave:

Would you mind opening an issue directly on the jslib-aws repository with an example (anonymized) script that would allow us to reproduce the issue please? That would be much appreciated :bowing_man: