-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy_check.py
More file actions
34 lines (26 loc) · 1003 Bytes
/
deploy_check.py
File metadata and controls
34 lines (26 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import sys
# import os
# for name, value in os.environ.items():
# print("{0}: {1}".format(name, value))
stage = sys.argv[2]
region = sys.argv[4]
if stage != "prod" and stage != "test":
print("unexpected stage: " + stage)
sys.exit(1)
if region != "ap-southeast-2":
print("unexpected region: " + region)
sys.exit(1)
print(
"""> nshm-model-graphql-api@0.3.0 deploy
> serverless deploy --stage
api keys:
TempApiKey-nzshm22-model-graphql-api-test: the-totally-real-api-key Api key until we have an auth function
endpoints:
OPTIONS - https://countries.trevorblades.com/graphql
POST - https://fu7kuwh.execute-api.ap-southeast-2.amazonaws.com/test/graphql
GET - https://fu7kuwh.execute-api.ap-southeast-2.amazonaws.com/test/graphql
GET - https://fu7kuwh.execute-api.ap-southeast-2.amazonaws.com/test/graphql/{proxy+}
GET - https://fu7kuwh.execute-api.ap-southeast-2.amazonaws.com/test/static/{proxy+}
functions:
app: nzshm22-model-graphql-api-test-app (18 MB)"""
)