This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as pulumi from "@pulumi/pulumi"; | |
import * as aws from "@pulumi/aws"; | |
// The services we want to host on our domain... | |
const api1 = new aws.apigateway.x.API("api1", { | |
routes: [ | |
{method: "GET", path: "/", eventHandler: async(ev) => { | |
return { | |
statusCode: 200, | |
body: JSON.stringify({hello: "world"}), |