sticky-country-73582
09/08/2022, 7:27 PMbody
argument in apigateway.RestApi
to have OpenAPI specs for each individual path and a corresponding integration under x-amazon-apigateway-integration
but it gives an error like this -
Unable to put integration on 'POST' for resource at path '/<some>/<path>': Integrations of type 'AWS_PROXY' currently only supports Lambda function and Firehose stream invocations.
swift-fireman-31153
09/08/2022, 7:36 PMconst methodGet = new aws.apigateway.Method("get", {
restApi: openApiId,
resourceId: resource.id,
httpMethod: "GET",
authorization: "CUSTOM",
authorizerId: openApiAuthorizorId,
apiKeyRequired: true,
});
const integration = new aws.apigateway.Integration("integration", {
restApi: openApiId,
resourceId: resource.id,
httpMethod: methodGet.httpMethod,
integrationHttpMethod: methodGet.httpMethod,
type: "HTTP_PROXY",
uri: "<https://httpbin.org/uuid>",
});
sticky-country-73582
09/08/2022, 7:49 PMResource
before each right?swift-fireman-31153
09/08/2022, 8:40 PM