awslabs / amplify-video

An open source Category Plugin for the AWS Amplify-CLI that makes it easy to deploy live and file based streaming video services and integrate them into your Amplify applications.
https://www.npmjs.com/package/amplify-category-video
Apache License 2.0
267 stars 56 forks source link

How to invoke signed urls token lambda without api? #273

Open kervonryan opened 3 years ago

kervonryan commented 3 years ago

Note: If your question is regarding the AWS Amplify Console service, please log it in the official AWS Amplify Console forum

Which Category is your question related to? Signed Url Token

What AWS Services are you utilizing? Lambda

Provide additional details e.g. code snippets

How do i invoke the signed urls lambda function via HTTP while respecting the env(dev, stage, prod)? I've tried adding a apigateway trigger with the necessary permissions but I get error 500. Can someone guide me on how to do this and the steps to do this be added to the documentation given that we have the option to turn off the API. Thanks.

EDIT: It works with the api gateway trigger! Still, is there a better way to do this in the cli?

kervonryan commented 3 years ago

@wizage