The API Gateway service is a fully managed solution from AWS that gives developers the ability to create highly scalable and highly secure API endpoints. The service is designed with the developer in mind and makes it very easy to write and deploy API endpoints straight out of the Management Console.
With API Gateway, we can expose different types of applications running in AWS EC2 or ECS to the internet and allow for direct communication with any HTTP/HTTPS-enabled managed services such as S3 or DynamoDB. The service also gives us the ability to create an API that will send queries to a Lambda function. Lambda functions are not exposed to the internet so API Gateway provides an entry point to the Lambda environment as well. Additionally, we can expose services completely external to AWS in our on-premises data center or anywhere on the internet.
The...