'Correct way to auto create aws api gateways to existing apis

I am building 2 separate nodejs microservices (using express inside each etc).

What is the correct way to properly automate creation of AWS Api gateway's so that they map exactly on to my nodejs apis ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source