Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Referencing existing output values from other CloudFormation stacks #293

Open
nathanagez opened this issue Jul 12, 2021 · 4 comments
Open
Assignees

Comments

@nathanagez
Copy link
Collaborator

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
[email protected]
@kylekirkby
Copy link

Seems similar to an issue I opened a while ago.

#206

@danielvouch
Copy link

This would be really useful!

@danielvouch
Copy link

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

@danielvouch
Copy link

danielvouch commented Feb 7, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants