Referencing existing output values from other CloudFormation stacks
nathanagez opened this issue · 4 comments
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
Seems similar to an issue I opened a while ago.
This would be really useful!
@wizage any ideas if this is in scope for implementation anytime soon?
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.