Amazon Product API on Google Cloud Functions (2nd Gen)
Deploy an Amazon product lookup as a Google Cloud Functions (2nd gen) HTTP function by reusing the TypeScript quickstart's client.js, retry.js and lookup.js unmodified. Two GCP-specific traps matter here: a brand-new function's --timeout defaults to 60 seconds even though the ceiling is 3600, and any logging must be awaited before the response is sent, since code afterward is not guaranteed to run.