質問編集履歴
3
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,6 +19,30 @@
|
|
19
19
|
解決策をご存知の方いらっしゃれば教えて頂けると嬉しいです。
|
20
20
|
よろしくおねがいします
|
21
21
|
|
22
|
+
※使用したコード
|
23
|
+
『https://qiita.com/miso_develop/items/bdcf15489b069ba1fa61』
|
24
|
+
```
|
25
|
+
const config = {
|
26
|
+
restApiId: "xxxxxxxx",
|
27
|
+
resourceId: "xxxxxxxx",
|
28
|
+
httpMethod: "ANY",
|
29
|
+
port: 3000,
|
30
|
+
}
|
31
|
+
|
32
|
+
const execSync = require('child_process').execSync
|
33
|
+
const ngrok = require('ngrok')
|
34
|
+
|
35
|
+
const main = async () => {
|
36
|
+
const ngrokUrl = await ngrok.connect(config.port)
|
37
|
+
console.log(ngrokUrl)
|
38
|
+
|
39
|
+
execSync(`aws apigateway put-integration --rest-api-id ${config.restApiId} --resource-id ${config.resourceId} --http-method ${config.httpMethod} --type HTTP_PROXY --integration-http-method ${config.httpMethod} --uri ${ngrokUrl}`)
|
40
|
+
execSync(`aws apigateway create-deployment --rest-api-id ${config.restApiId} --stage-name prod`)
|
41
|
+
console.log(`https://${config.restApiId}.execute-api.ap-northeast-1.amazonaws.com/prod`)
|
42
|
+
}
|
43
|
+
main()
|
44
|
+
```
|
45
|
+
|
22
46
|
※試したこと(覚えている限り)
|
23
47
|
```
|
24
48
|
npm install -g npm-install-missing
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
解決策をご存知の方いらっしゃれば教えて頂けると嬉しいです。
|
20
20
|
よろしくおねがいします
|
21
21
|
|
22
|
-
※試したこと
|
22
|
+
※試したこと(覚えている限り)
|
23
23
|
```
|
24
24
|
npm install -g npm-install-missing
|
25
25
|
```
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,4 +17,15 @@
|
|
17
17
|
このサイトに、似た質問がありましたが自分のとは違うみたいで
|
18
18
|
調べても解決策と思われるのが見つからず質問させて頂きました。
|
19
19
|
解決策をご存知の方いらっしゃれば教えて頂けると嬉しいです。
|
20
|
-
よろしくおねがいします
|
20
|
+
よろしくおねがいします
|
21
|
+
|
22
|
+
※試したこと
|
23
|
+
```
|
24
|
+
npm install -g npm-install-missing
|
25
|
+
```
|
26
|
+
```
|
27
|
+
npm install googleapis@39 --save
|
28
|
+
```
|
29
|
+
```
|
30
|
+
npm install commander@2.9
|
31
|
+
```
|