Skip to content

Commit 2b35e44

Browse files
- added launch config
1 parent f03944d commit 2b35e44

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.vscode/launch.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,38 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "get-restaurants",
10+
"name": "get-index",
1111
"program": "${workspaceFolder}/node_modules/.bin/sls",
1212
"args": [
1313
"invoke",
1414
"local",
1515
"-f",
16-
"get-restaurants",
16+
"get-index",
1717
"-d",
1818
"{}"
1919
],
2020
"env": {
21-
"restaurant_table": "restaurants"
21+
"restaurants_api": "https://i3c5h755j0.execute-api.us-east-1.amazonaws.com/dev/restaurants",
22+
"cognito_user_pool_id": "us-east-1_DfuAwa0vB",
23+
"cognito_client_id": "49lunjf7j7vsgmq9lhtfn4q7ma",
24+
"SLS_DEBUG": "*"
2225
}
2326
},
2427
{
2528
"type": "node",
2629
"request": "launch",
27-
"name": "get-index",
30+
"name": "get-restaurants",
2831
"program": "${workspaceFolder}/node_modules/.bin/sls",
2932
"args": [
3033
"invoke",
3134
"local",
3235
"-f",
33-
"get-index",
36+
"get-restaurants",
3437
"-d",
3538
"{}"
3639
],
3740
"env": {
38-
"restaurant_api": "https://i3c5h755j0.execute-api.us-east-1.amazonaws.com/dev/restaurants",
39-
"cognito_user_pool_id": "us-east-1_DfuAwa0vB",
40-
"cognito_client_id": "1tf8pb1s1n53p7u608e7ic5ih8",
41+
"restaurants_table": "restaurants",
4142
"SLS_DEBUG": "*"
4243
}
4344
},
@@ -51,11 +52,12 @@
5152
"local",
5253
"-f",
5354
"search-restaurants",
54-
"-d",
55-
"{ \"body\": \"{ \\\"theme\\\": \\\"cartoon\\\" }\"}"
55+
"-p",
56+
"examples/search-restaurants.json"
5657
],
5758
"env": {
58-
"restaurant_table": "restaurants"
59+
"restaurants_table": "restaurants",
60+
"SLS_DEBUG": "*"
5961
}
6062
},
6163
{

examples/search-restaurants.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "body": "{ \"theme\": \"cartoon\" }" }

0 commit comments

Comments
 (0)