diff --git a/SAMtemplates/apis/main.yaml b/SAMtemplates/apis/main.yaml index 5b54c7c11..315da5867 100644 --- a/SAMtemplates/apis/main.yaml +++ b/SAMtemplates/apis/main.yaml @@ -226,13 +226,17 @@ 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' - RestApiGatewayDeployment: + # ********************************************************************* + # if you add a new endpoint, then change the name of this resource + # also need to change it in RestApiGatewayStage.Properties.DeploymentId + # ********************************************************************* + RestApiGatewayDeploymentV1: Type: AWS::ApiGateway::Deployment DependsOn: + # see note above if you add something in here when you add a new endpoint - UpdatePrescriptionStatusMethod - StatusLambdaMethod + # see note above if you add something in here when you add a new endpoint Properties: RestApiId: !Ref RestApiGateway @@ -240,7 +244,7 @@ Resources: Type: AWS::ApiGateway::Stage Properties: RestApiId: !Ref RestApiGateway - DeploymentId: !Ref RestApiGatewayDeployment + DeploymentId: !Ref RestApiGatewayDeploymentV1 StageName: prod TracingEnabled: true AccessLogSetting: