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

Referencing existing output values from other CloudFormation stacks #293

Open nathanagez opened 2 years ago

nathanagez commented 2 years ago

Describe the bug When trying to reference an output value from other Amplify-managed category CloudFormation stack the output value seems to not be shared to amplify-video stack.

To Reproduce In backend-config.json search amplify-video key and add the dependsOn property, i.e.:

"video": {
    "projectName": {
      "service": "video",
      "serviceType": "video-on-demand",
      "providerPlugin": "awscloudformation",
      "dependsOn": [
        {
          "category": "api",
          "resourceName": "projectName",
          "attributes": [
            "GraphQLAPIIdOutput",
            "GraphQLAPIEndpointOutput"
          ]
        }
      ]
    }
  }

Configure CloudFormation stacks like they do inside documentation. When you'll try to access attributes inside CloudFormation stack the following error will appears:

Parameters: [apiprojectNameGraphQLAPIEndpointOutput, apiprojectNameGraphQLAPIIdOutput] do not exist in the template

Expected behavior Share output values correctly to amplify-video CloudFormation stacks

amplify -v
5.1.0
amplify video -v
amplify-category-video@3.8.2
kylekirkby commented 2 years ago

Seems similar to an issue I opened a while ago.

https://github.com/awslabs/amplify-video/issues/206

danielvouch commented 2 years ago

This would be really useful!

danielvouch commented 2 years ago

@wizage any ideas if this is in scope for implementation anytime soon?

danielvouch commented 2 years ago

Is there any update to this feature by any chance?

I'd love to be able to access lambda layers + DB tables in a video trigger.