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
268 stars 56 forks source link

IVS Shim in CloudFormation custom resource host set to us-west-2 endpoint #139

Closed randyridgley closed 4 years ago

randyridgley commented 4 years ago

When using amplify in us-east-1 running through the unicornlive workshop the IVS Shim custom resource hangs indefinitely. Looking at the --ivsShim Lambda function has the host configured to

79 const host = 'ivs.us-west-2.amazonaws.com';

Path to the js file with the hard coded endpoint. Could substitute the region variable into the host to fix provider-utils/awscloudformation/cloudformation-templates/ivs-helpers/LambdaFunctions/IVSShim/index.js

To Reproduce Steps to reproduce the behavior: Need to be in region other than us-west-2

  1. amplify init
  2. amplify video add
  3. amplify push
  4. Custom Resource never finishes need to be deleted from the console

Expected behavior IVS channel created successfully during the push from amplify with the output: Interactive Video Service: Input url: rtmps://url

Stream Keys: sk_region_id

Output url: https://example.playback.live-video.net/api/video/v1/example.m3u8

Channel ARN: arn:aws:ivs:REGION:ACCOUNT_ID:channel/ID