From 86d0f6760bdbe2c37cb9d36489c0d72307ec1ead Mon Sep 17 00:00:00 2001 From: Anthony Brown <121869075+anthony-nhs@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:12:53 +0000 Subject: [PATCH] changes stage names --- 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