Skip to content

Commit

Permalink
Revert "Fix: [AEA-0000] - fix deployment following adding status endp…
Browse files Browse the repository at this point in the history
…oint (#184)"

This reverts commit d82db54.
  • Loading branch information
anthony-nhs committed Apr 30, 2024
1 parent 08e1eb7 commit ac9bdf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SAMtemplates/apis/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,22 +226,21 @@ 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 <CHANGE ME> --stage-name prod --description 'Deployed from CLI'
# if you add a new endpoint, then change the stage name
RestApiGatewayDeployment:
Type: AWS::ApiGateway::Deployment
DependsOn:
- UpdatePrescriptionStatusMethod
- 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
Expand Down

0 comments on commit ac9bdf5

Please sign in to comment.