Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace status page domain name #689

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 38 additions & 39 deletions serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
service: data-portal-api

frameworkVersion: '^3'
frameworkVersion: "^3"

plugins:
- serverless-wsgi
Expand All @@ -25,7 +25,7 @@ provider:
httpApi: true
httpApi:
disableDefaultEndpoint: true
payload: '2.0'
payload: "2.0"
cors:
allowedOrigins:
# FIXME: https://github.com/umccr/infrastructure/issues/272
Expand All @@ -37,9 +37,9 @@ provider:
- https://data.prod.umccr.org
- https://data.dev.umccr.org
- https://data.stg.umccr.org
- https://status.data.umccr.org
- https://status.data.prod.umccr.org
- https://status.data.dev.umccr.org
- https://status.umccr.org
- https://status.prod.umccr.org
- https://status.dev.umccr.org
victorskl marked this conversation as resolved.
Show resolved Hide resolved
- https://sscheck.umccr.org
- https://sscheck.prod.umccr.org
- https://sscheck.dev.umccr.org
Expand Down Expand Up @@ -86,7 +86,6 @@ provider:
LAB_METADATA_SYNC_LAMBDA: ${self:service}-${sls:stage}-labmetadata_scheduled_update_processor

functions:

api:
handler: wsgi_handler.handler
layers:
Expand Down Expand Up @@ -149,9 +148,9 @@ functions:
timeout: 120
reservedConcurrency: 20
# Uncomment to enable xray on this lambda
# tracing: Active
# environment:
# AWS_XRAY_SDK_ENABLED: true
# tracing: Active
# environment:
# AWS_XRAY_SDK_ENABLED: true

sqs_gds_event_processor:
handler: data_processors.gds.lambdas.gds_event.handler
Expand Down Expand Up @@ -504,9 +503,9 @@ custom:
customDomains:
- http:
domainName: ${ssm:/data_portal/backend/api_domain_name2}
basePath: ''
basePath: ""
# Either set the stage to proper one or use the APIGateway v2 $default value
# stage: ${self:provider.stage}
# stage: ${self:provider.stage}
createRoute53Record: true
certificateArn: ${ssm:/data_portal/backend/certificate_arn2}
apiType: http
Expand All @@ -521,31 +520,31 @@ custom:
package:
# See https://www.serverless.com/framework/docs/providers/aws/guide/packaging/
patterns:
- '!.husky/**'
- '!.git/**'
- '!.idea/**'
- '!__pycache__/**'
- '!node_modules/**'
- '!package.json'
- '!yarn.lock'
- '!mocks/**'
- '!downloads/**'
- '!venv/**'
- '!.venv/**'
- '!env/**'
- '!.env/**'
- '!data/**'
- '!swagger/**'
- '!docs/**'
- '!docker-compose.yml'
- '!docker-compose.override.sample.yml'
- '!docker-compose.override.yml'
- '!docker-compose.ci.yml'
- '!buildspec.yml'
- '!slimpatterns.yml'
- '!Makefile'
- '!README.md'
- '!requirements-dev.txt'
- '!requirements-test.txt'
- '!haproxy.cfg'
- '!loaddata.sh'
- "!.husky/**"
- "!.git/**"
- "!.idea/**"
- "!__pycache__/**"
- "!node_modules/**"
- "!package.json"
- "!yarn.lock"
- "!mocks/**"
- "!downloads/**"
- "!venv/**"
- "!.venv/**"
- "!env/**"
- "!.env/**"
- "!data/**"
- "!swagger/**"
- "!docs/**"
- "!docker-compose.yml"
- "!docker-compose.override.sample.yml"
- "!docker-compose.override.yml"
- "!docker-compose.ci.yml"
- "!buildspec.yml"
- "!slimpatterns.yml"
- "!Makefile"
- "!README.md"
- "!requirements-dev.txt"
- "!requirements-test.txt"
- "!haproxy.cfg"
- "!loaddata.sh"