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