question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to add DynamoDB triggers via amplify add function

See original GitHub issue

Is your feature request related to a problem? Please describe. I’ve created a graphql api backend and declared tables in my schema using @model. I would like to create a function to populate a field on the table on insert. Attempting this caused the following error:

There are no DynamoDB resources configured in your project currently

Describe the solution you’d like I’d like amplify to recognize the dynamoDB tables creates via the graphql schema so that I can add lambda function “triggers”.

Describe alternatives you’ve considered I’ll probably do the work on the front end for now.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:51
  • Comments:30 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
mrgruecommented, Jun 24, 2020

Is it possible to make an existing function trigger from DynamoDB with amplify function update, or can I only do that when I create the function?

8reactions
kldebcommented, Sep 26, 2019

It would be nice if we could have an @trigger directive that works like the @function directive.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced workflows - Lambda Triggers - AWS Amplify Docs
Lambda triggers are useful for adding functionality during certain lifecycles of the user's journey. Amplify ships common trigger templates which you can ...
Read more >
How to configure dynamodb-to-lambda trigger using amplify ...
To create a lambda function that is triggered by changes to a DynamoDB ... amplify add function. Select which capability you want to...
Read more >
Amplify Framework adds support for AWS Lambda Triggers in ...
Using Lambda triggers, you can call event-based Lambda functions for authentication, database actions, and storage operations from other AWS ...
Read more >
Quickstart
# DynamoDB Lambda Triggers ... You can associate a Lambda trigger with a DynamoDB table, managed by the Amplify CLI, using the amplify...
Read more >
Timeline feature: @function
In $ amplify add function , several templates are available. For example, if you select Lambda Trigger , you can set up DynamoDB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found