From d1d2a5c0b690e9f9b203215d9d01faacd50c0e29 Mon Sep 17 00:00:00 2001 From: Anthony Brown <121869075+anthony-nhs@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:15:05 +0000 Subject: [PATCH] Revert "Fix: [AEA-0000] - fix deployment following adding status endpoint (#184)" This reverts commit d82db542e6941a7e7c140991443e33be2460ec83. --- SAMtemplates/apis/main.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SAMtemplates/apis/main.yaml b/SAMtemplates/apis/main.yaml index 5b54c7c11..478be6fb0 100644 --- a/SAMtemplates/apis/main.yaml +++ b/SAMtemplates/apis/main.yaml @@ -226,8 +226,7 @@ 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 need to manually force a deployment - # aws apigateway create-deployment --rest-api-id --stage-name prod --description 'Deployed from CLI' + # if you add a new endpoint, then change the stage name RestApiGatewayDeployment: Type: AWS::ApiGateway::Deployment DependsOn: @@ -235,13 +234,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