From d82db542e6941a7e7c140991443e33be2460ec83 Mon Sep 17 00:00:00 2001 From: anthony-nhs <121869075+anthony-nhs@users.noreply.github.com> Date: Tue, 30 Apr 2024 13:27:34 +0100 Subject: [PATCH] Fix: [AEA-0000] - fix deployment following adding status endpoint (#184) ## Summary - Routine Change ### Details - fixes deployment following adding status endpoint --- SAMtemplates/apis/main.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SAMtemplates/apis/main.yaml b/SAMtemplates/apis/main.yaml index 478be6fb0..5b54c7c11 100644 --- a/SAMtemplates/apis/main.yaml +++ b/SAMtemplates/apis/main.yaml @@ -226,7 +226,8 @@ Resources: IntegrationHttpMethod: POST Uri: !Sub arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${StatusLambdaFunctionArn}/invocations - # if you add a new endpoint, then change the stage name + # if you add a new endpoint, then need to manually force a deployment + # aws apigateway create-deployment --rest-api-id --stage-name prod --description 'Deployed from CLI' RestApiGatewayDeployment: Type: AWS::ApiGateway::Deployment DependsOn: @@ -234,13 +235,13 @@ Resources: - StatusLambdaMethod Properties: RestApiId: !Ref RestApiGateway - StageName: prod-v1 RestApiGatewayStage: Type: AWS::ApiGateway::Stage Properties: RestApiId: !Ref RestApiGateway DeploymentId: !Ref RestApiGatewayDeployment + StageName: prod TracingEnabled: true AccessLogSetting: DestinationArn: !GetAtt RestApiGatewayResources.Outputs.ApiGwAccessLogsArn