AWS Compute Blog

Category: Amazon API Gateway

Build Serverless Applications in AWS Mobile Hub with New Cloud Logic and User Sign-in Features

Last month, we showed you how to power a mobile back end using a serverless stack, with your business logic in AWS Lambda and the resulting cloud APIs exposed to your app through Amazon API Gateway. This pattern enables you to create and test mobile cloud APIs backed by business logic functions you develop, all […]

Going Serverless: Migrating an Express Application to Amazon API Gateway and AWS Lambda

Brett Andrews Software Development Engineer Amazon API Gateway recently released three new features that simplify the process of forwarding HTTP requests to your integration endpoint: greedy path variables, the ANY method, and proxy integration types. With this new functionality, it becomes incredibly easy to run HTTP applications in a serverless environment by leveraging the aws-serverless-express […]

Techniques and Tools for Better Serverless API Logging with Amazon API Gateway and AWS Lambda

Ryan Green @ryangtweets Software Development Engineer, API Gateway Developing, testing, and operating Serverless APIs using Amazon API Gateway and AWS Lambda can be made much easier with built-in support for Amazon CloudWatch Logs. In Lambda functions, you can use log statements to send log events to CloudWatch log streams, and API Gateway automatically submits log […]

Migrating a Native JAVA REST API to a Serverless Architecture with the Lambada Framework for AWS

NOTE: Newer guidance on the topic of migrating Java based applications to AWS Lambda can be found here: Replatforming Java based applications to AWS Lambda. This is a guest post by Çağatay Gürtürk, the creator of the Lambada framework Serverless computing has become a hot topics since AWS Lambda and Amazon API Gateway started to […]

Redirection in a Serverless API with AWS Lambda and Amazon API Gateway

Ronald Widha @ronaldwidha Partner Solutions Architect Redirection is neither a success nor an error response. You return redirection when the requested resource resides either temporarily or permanently under a different URI. The client needs to issue subsequent calls to the new location in order to retrieve the requested resource. Even though you typically see 302 […]

Error Handling Patterns in Amazon API Gateway and AWS Lambda

Ryan Green @ryangtweets Software Development Engineer, API Gateway A common API design practice is to define an explicit contract for the types of error responses that the API can produce. This allows API consumers to implement a robust error-handling mechanism which may include user feedback or automatic retries, improving the usability and reliability of applications […]

Using API Gateway with VPC endpoints via AWS Lambda

To isolate critical parts of their app’s architecture, customers often rely on Virtual Private Cloud (VPC) and private subnets. Today, Amazon API Gateway cannot directly integrate with endpoints that live within a VPC without internet access. However, it is possible to proxy calls to your VPC endpoints using AWS Lambda functions. This post guides you […]