質問編集履歴
1
誤字修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
nodejs s3からのダウンロード処理を関数化
|
1
|
+
nodejs s3からのダウンロード処理を関数化したい
|
body
CHANGED
@@ -38,11 +38,11 @@
|
|
38
38
|
const filePath = await getS3Object(s3Params, localFilePath);
|
39
39
|
```
|
40
40
|
以下のように関数化しました。
|
41
|
-
|
41
|
+
imagePathには、s3のファイルパスが入っています。
|
42
42
|
```
|
43
43
|
const filePath = image(imagePath);
|
44
44
|
|
45
|
-
function image(
|
45
|
+
function image(imagePath) {
|
46
46
|
var s3 = new AWS.S3();
|
47
47
|
const s3BucketName = '**********';
|
48
48
|
|