From 100e2803caeb3b6c43116c25526f665f8851419d Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Thu, 22 Oct 2020 11:01:38 +0200 Subject: [PATCH] fix(cellgeo): let stage wait for log group Getting these errors: 8/90 | 8:42:24 AM | CREATE_FAILED | AWS::ApiGatewayV2::Stage | cellGeolocationApi/stage (cellGeolocationApistage3E9E29D9) Insufficient permissions to enable logging (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: 5632cc06-d3a4-4468-9c1e-f821560f4413; Proxy: null) --- cdk/resources/CellGeolocationApi.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cdk/resources/CellGeolocationApi.ts b/cdk/resources/CellGeolocationApi.ts index 4489a7ac..456d251f 100644 --- a/cdk/resources/CellGeolocationApi.ts +++ b/cdk/resources/CellGeolocationApi.ts @@ -124,6 +124,7 @@ export class CellGeolocationApi extends CloudFormation.Resource { }), }, }) + this.stage.node.addDependency(httpApiLogGroup) // GET __health