質問編集履歴
4
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
3
質問文を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,21 +24,9 @@
|
|
24
24
|
|
25
25
|
#調べたこと
|
26
26
|
|
27
|
-
|
27
|
+
https://bref.sh/docs/environment/php.html#extensions
|
28
28
|
|
29
|
-
https://stackoverflow.com/questions/63532051/laravel-imagick-and-gd-error-at-aws-lambda-with-bref
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
『Vapor: Adding Imagick As Separate Lambda Layer』
|
34
|
-
|
35
|
-
https://b
|
29
|
+
https://github.com/brefphp/extra-php-extensions
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
上記が gd を追加する参考になりそうなのですが、
|
40
|
-
|
41
|
-
どのように自分の環境に落とし込めむのか。。。
|
42
30
|
|
43
31
|
|
44
32
|
|
@@ -54,9 +42,33 @@
|
|
54
42
|
|
55
43
|
|
56
44
|
|
45
|
+
#調べたことから以下実施
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
以下実行
|
50
|
+
|
51
|
+
```ここに言語を入力
|
52
|
+
|
53
|
+
composer require bref/extra-php-extensions
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
以下追記
|
60
|
+
|
57
61
|
serverless.yml
|
58
62
|
|
59
63
|
```ここに言語を入力
|
64
|
+
|
65
|
+
plugins:
|
66
|
+
|
67
|
+
- ./vendor/bref/bref
|
68
|
+
|
69
|
+
- ./vendor/bref/extra-php-extensions #追加
|
70
|
+
|
71
|
+
|
60
72
|
|
61
73
|
functions:
|
62
74
|
|
@@ -72,6 +84,10 @@
|
|
72
84
|
|
73
85
|
- httpApi: '*'
|
74
86
|
|
87
|
+
- ${bref:layer.php-80}
|
88
|
+
|
89
|
+
- ${bref-extra:gd-php-80} #追加
|
90
|
+
|
75
91
|
# This function lets us run artisan commands in Lambda
|
76
92
|
|
77
93
|
artisan:
|
@@ -86,6 +102,18 @@
|
|
86
102
|
|
87
103
|
- ${bref:layer.console}
|
88
104
|
|
105
|
+
- ${bref-extra:gd-php-80} #追加
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
上記設定を追記して、デプロイしても更新されない。。なぜ?
|
112
|
+
|
113
|
+
```ここに言語を入力
|
114
|
+
|
115
|
+
Serverless: Service files not changed. Skipping deployment...
|
116
|
+
|
89
117
|
```
|
90
118
|
|
91
119
|
Lambda初心者なので、どうかよろしくお願いいたします。
|
2
質問文を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
#調べたこと
|
26
26
|
|
27
|
-
『Laravel
|
27
|
+
『Laravel: Imagick and GD error at AWS Lambda with Bref』
|
28
28
|
|
29
29
|
https://stackoverflow.com/questions/63532051/laravel-imagick-and-gd-error-at-aws-lambda-with-bref
|
30
30
|
|
1
serverless.yml追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,4 +54,38 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
+
serverless.yml
|
58
|
+
|
59
|
+
```ここに言語を入力
|
60
|
+
|
61
|
+
functions:
|
62
|
+
|
63
|
+
# This function runs the Laravel website/API
|
64
|
+
|
65
|
+
web:
|
66
|
+
|
67
|
+
image:
|
68
|
+
|
69
|
+
name: laravel
|
70
|
+
|
71
|
+
events:
|
72
|
+
|
73
|
+
- httpApi: '*'
|
74
|
+
|
75
|
+
# This function lets us run artisan commands in Lambda
|
76
|
+
|
77
|
+
artisan:
|
78
|
+
|
79
|
+
handler: artisan
|
80
|
+
|
81
|
+
timeout: 120 # in seconds
|
82
|
+
|
83
|
+
layers:
|
84
|
+
|
85
|
+
- ${bref:layer.php-80}
|
86
|
+
|
87
|
+
- ${bref:layer.console}
|
88
|
+
|
89
|
+
```
|
90
|
+
|
57
91
|
Lambda初心者なので、どうかよろしくお願いいたします。
|