Adding custom DataSource as a dependency to an auto-generated resolver function. #942
Labels
api-graphql
duplicate
This issue or pull request already exists
extensibility
question
Further information is requested
Which Category is your question related to?
API
Amplify CLI Version
10.2.3
Details
I have extended an auto-generated pipeline resolver by added 2 postUpdate functions to it (as shown below).
The
MutationcreateChatroompostUpdate1Function
function makes a BatchPutItem request to a DynamoDB table. I had originally created that DataSource on the web console but now I need it to be defined locally and have it update uponamplify push
.I originally added the following code to my
CustomResource.json
file, but the auto-generated stack failed update because it needs this as a dependency.I then tried to create the resource in
overrides.ts
withaws-cdk
and use it in the.addDependsOn()
method, but that failed on push withError: Skipping override due to VMError: Cannot find module 'fs'
.Scoured this repo for related issues but found nothing, any help is welcome and much appreciated!
The text was updated successfully, but these errors were encountered: