From b2a7cfe8559865a54290d58015f52b49fa8fde12 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Mon, 26 Oct 2020 13:05:33 +0100 Subject: [PATCH] fix(cellgeo): re-add /invocations to integrationUri --- cdk/resources/CellGeolocationApi.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cdk/resources/CellGeolocationApi.ts b/cdk/resources/CellGeolocationApi.ts index f4bbf658..6ae0c117 100644 --- a/cdk/resources/CellGeolocationApi.ts +++ b/cdk/resources/CellGeolocationApi.ts @@ -157,7 +157,7 @@ export class CellGeolocationApi extends CloudFormation.Resource { { apiId: this.api.ref, integrationType: 'AWS_PROXY', - integrationUri: `arn:aws:apigateway:${this.stack.region}:lambda:path/2015-03-31/functions/${healthCheck.functionArn}`, + integrationUri: `arn:aws:apigateway:${this.stack.region}:lambda:path/2015-03-31/functions/${healthCheck.functionArn}/invocations`, integrationMethod: 'POST', payloadFormatVersion: '1.0', }, @@ -182,7 +182,7 @@ export class CellGeolocationApi extends CloudFormation.Resource { { apiId: this.api.ref, integrationType: 'AWS_PROXY', - integrationUri: `arn:aws:apigateway:${this.stack.region}:lambda:path/2015-03-31/functions/${geolocateCell.functionArn}`, + integrationUri: `arn:aws:apigateway:${this.stack.region}:lambda:path/2015-03-31/functions/${geolocateCell.functionArn}/invocations`, integrationMethod: 'POST', payloadFormatVersion: '1.0', }, @@ -207,7 +207,7 @@ export class CellGeolocationApi extends CloudFormation.Resource { { apiId: this.api.ref, integrationType: 'AWS_PROXY', - integrationUri: `arn:aws:apigateway:${this.stack.region}:lambda:path/2015-03-31/functions/${addCellGeolocation.functionArn}`, + integrationUri: `arn:aws:apigateway:${this.stack.region}:lambda:path/2015-03-31/functions/${addCellGeolocation.functionArn}/invocations`, integrationMethod: 'POST', payloadFormatVersion: '1.0', },