Closed mdwt closed 5 years ago
arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function::lambdaSwitch-${env}
format is incorrect. It should be arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lambdaSwitch-${env}
Please replace your double colon after function with a single colon.
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels for those types of questions.
Hi there,
I'm having trouble configuring a custom resolver targeting a Lambda function - it seems the Data Source is not being created correctly although the push completes successfully.
I followed this section of the documentation to add a lambda function with a custom resolver
https://aws-amplify.github.io/docs/cli/graphql?sdk=js#add-a-custom-resolver-that-targets-an-aws-lambda-function
I created a function called
lambdaSwitch
withamplify function add
and then I added the following section to theapi/<API>/stacks/CustomResources.json
file:The mutation
The
amplify api push
finishes successfully but when viewing the Data Source in the AppSync console the required fields (Region, Function, Role) are not populated:So the mutation cannot be invoked - it returns this error:
Is there something that I am missing in my resources file or process?
Windows 10.0.17763 Build 17763 node v10.15.3 npm 6.4.1 amplify 1.6.8