https://pulumi.com logo
#aws
Title
b

bitter-oil-45383

11/05/2020, 10:42 PM
hi guys, do you have any example of integrating aws.apigateway.Method, aws.apigateway.Integration, aws.apigateway.MethodResponse with an API created with awsx.apigateway.API? Specifically, I'd like to enable cors
Copy code
/**
 * routes
 */
export const routes: Route[] = [
  {
    path: '/api/speak',
    method: 'POST',
    eventHandler: speakApiLambdaFn,
  },
];

const aspScanApiEndpoint = new awsx.apigateway.API('myApi' {
  stageName: pulumi.getStack(),
  routes
});