Skip to content

Commit 280b0af

Browse files
committed
improved serverless func config
1 parent bd7f114 commit 280b0af

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lambda/serverless.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ service: app
22

33
provider:
44
name: aws
5-
region: es-east-1
5+
region: us-east-1
66

77
plugins:
88
- ./vendor/bref/bref
@@ -12,7 +12,7 @@ functions:
1212
name: wordpress-website
1313
handler: index.php
1414
# using bref plugin
15-
runtime: php-84-fpm
15+
runtime: php-83-fpm
1616
# without bref plugin
1717
# runtime: provided.al2
1818
# layers:
@@ -21,6 +21,14 @@ functions:
2121
url: true
2222
environment:
2323
BREF_BINARY_RESPONSES: "1"
24+
vpc:
25+
# efs requires vpc
26+
# securityGroupIds:
27+
# subnetIds:
28+
fileSystemConfig:
29+
localMountPath: /mnt/root
30+
# efs access point arn
31+
# arn:
2432

2533
package:
2634
patterns:

0 commit comments

Comments
 (0)