Skip to content

Commit

Permalink
changes stage names
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-nhs committed Apr 30, 2024
1 parent 5f4219b commit 86d0f67
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 86d0f67

Please sign in to comment.