From the course: AWS Quick Tips for Developers
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Cognito user pool triggers - Amazon Web Services (AWS) Tutorial
From the course: AWS Quick Tips for Developers
Cognito user pool triggers
- [Instructor] Many services in AWS allow you to create triggers to kick off a Lambda function at certain points and at certain actions. That includes Cognito user pools. I can click on Triggers on the left and see a variety of actions that can kick of triggers when they occur. I have a Lambda assigned to my pre-authentication. This is invoked when a user submits their information to be authenticated. This happens when a user tries to log in. I have my trigger associated with my maryhadalittle Lambda. If we look at that Lambda, we see that it's very simple. It just takes the event, logs it out, and returns the event. As long as I return the event, even if I've made changes, the user will be able to log in. So now when I log in with this user, they're able to log in. But if I change my Lambda to return something else or raise an exception, the user won't be able to log in. I'll be given a notification that…
Contents
-
-
Amazon Web Services quick tips54s
-
(Locked)
Triggering an AWS Lambda from DynamoDB1m 25s
-
(Locked)
Scheduling a Lambda to run regularly56s
-
(Locked)
Generating an API Gateway for DynamoDB1m 15s
-
(Locked)
Allowing RDS access for multiple servers52s
-
(Locked)
Sending email from an AWS Lambda1m 33s
-
(Locked)
Monitoring AWS billing with alarms1m 13s
-
(Locked)
Setting triggers for S3 bucket events55s
-
(Locked)
Protecting an S3 bucket from deletion1m 13s
-
(Locked)
Saving money with S3 Glacier1m 1s
-
(Locked)
Using CloudTrail for user action audits1m 22s
-
(Locked)
Setting user policies with IAM groups1m 10s
-
(Locked)
Hitting an AWS Lambda via API Gateway1m 9s
-
(Locked)
Creating an SNS event with S31m 30s
-
(Locked)
Easily hosting a web app on S31m 21s
-
(Locked)
Limiting access via IAM boundaries1m 22s
-
(Locked)
Enable MFA for root security47s
-
(Locked)
IAM credential report48s
-
(Locked)
Cognito user pool triggers1m 10s
-
(Locked)
SQS1m 31s
-
(Locked)
CloudFront1m 28s
-