...

/

Integration with Any AWS Service

Integration with Any AWS Service

Understand a generic trick for integrating API Gateway with any supported AWS services.

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.

When we connect to a service using ...

Access this course and 1400+ top-rated courses and projects.