Skip to content

Commit

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

This reverts commit ac9bdf5.
  • Loading branch information
anthony-nhs committed Apr 30, 2024
1 parent 6bb1ea9 commit 37219bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SAMtemplates/apis/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,21 +226,22 @@ 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 <CHANGE ME> --stage-name prod --description 'Deployed from CLI'
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 37219bc

Please sign in to comment.