Can't access custom CDK resource outputs from Lambda function #9630
Labels
duplicate
If marked with duplicate, issue will be closed & original will be added for traceability
extensibility
Issues related to expand or customize current configuration
feature-request
Request a new feature
Before opening, please confirm:
How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
v14.17.0
Amplify CLI Version
7.6.13
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Amplify Categories
custom, function
Amplify Commands
push
Describe the bug
We don't have the ability to access output variables from custom CDK code in Lambda function.
Expected behavior
We should be able to access output variables from custom resources using the
dependsOn
statement in thebackend-config.json
file.Reproduction steps
Add custom resource:
amplify add custom
select CDK and name it "video"Add an CfnOutput value for this stack:
Add Lambda function:
amplify add function
Update
backend-config.json
depnedsOn
entry:Update the Lambda CloudFormation stack:
Populate parameter values:
amplify env checkout <your-env>
Deploy:
amplify push
Note:
If someone can give me explanations on how the outputs are shared between the stacks and hints on how to implement this feature I might be able to do it!
GraphQL schema(s)
No response
Log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: