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.
Hitting an AWS Lambda via API Gateway - Amazon Web Services (AWS) Tutorial
From the course: AWS Quick Tips for Developers
Hitting an AWS Lambda via API Gateway
- [Instructor] If you have a Lambda function that you want to be able to call with a URL, you want to add an API Gateway trigger. Let's look at our Lambda function. It's basically just a simple function that returns the status, code headers, and bodies. We're using text/plain, but you could use application/json or whatever else you need, but this format is important because when it creates the API Gateway for us it's going to use Lambda proxy and it'll expect this format. We can add the trigger, select the API Gateway trigger, set the security to Open and add it. Once it's been added, it'll give us a URL to call and notice it's only displaying the body. But if we wanted to change the API, we can take off the Lambda proxy integration in the Integration Request. We just unclick this box, click Okay and Okay, and then we have to redeploy our API. We'll pick our development stage, give it some description, and deploy it. And then, once it's finished deploying, we can refresh this page and…
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
-