Integration with Any AWS Service
Explore how to integrate AWS API Gateway with any AWS service by using IAM-based authentication and configuring payloads correctly. This lesson guides you through setting up an API Gateway integration with AWS Key Management Service to encrypt data securely, demonstrating the generic approach to connect with multiple AWS services.
We'll cover the following...
Generic approach
AWS has hundreds of services, and they continue to grow. Many of these can be integrated directly with the API Gateway. Unfortunately, we can’t have an independent tutorial for each of those services. We have just too many of them. So, instead, this lesson tries to identify a generic approach for connecting with any service accessible from the API Gateway.
Connecting with services
Before we get into the details, we should look at a basic concept. Almost all AWS services export a REST API to connect with them. However, the interface to these services is inconsistent. For example, some services expect data in the path parameters, others in the query string, and others in the body of the API request.
Along with the payload, the services require an IAM based handshake for authentication and authorization. Therefore, we don’t need the API Gateway if we can implement it ourselves. It’s too complex, however, so we have to use the API Gateway, the AWS CLI, or one of the SDKs to connect with the individual services. ...