Hello. I've been working on a post-confirmation trigger, following this tutorial where a fetch request is made with a GraphQL mutation to create a user: https://www.youtube.com/watch?v=Ti0Nc_FHZLo. However, I want the Users table to be only modifiable by Admin group and the function itself. Not with an API key as I assume that's not very secure.
Is there a way to somehow give my function an IAM role or something like that, so that it can make the fetch request through AppSync/GraphQL? Or will I have to do something like this tutorial where the DynamoDB table is modified directly: https://www.youtube.com/watch?v=Sk9HMuAaTmQ
It's common to want to have your user details in your own database instead of AWS Cognito's User Pool. You might want to have relationship between your users and some other models in your database. This tutorial shows you how to add users to your Dynamo DB database when they sign up through Cognito.
Learn more at: https://go.aws/4774wUa
Subscr...
In this video I'll walk you through how to create a back end that implements an Amazon Cognito Post-confirmation Lambda Trigger that automatically stores users in Amazon DynamoDB after they have signed up. We'll also look at how to manage access to the API using Cognito and Cognito Groups plus learn how to connect the services to a React app.
I...