Skip to content

Commit

Permalink
chore: using layer for chromium on serverless and not including local…
Browse files Browse the repository at this point in the history
… chromium
  • Loading branch information
davodm committed Oct 11, 2023
1 parent 9d04e25 commit 07922b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ package:
- '!./test.js'
- '!./twitterlogin.js'
- '!./README.md'
- '!node_modules/puppeteer/.local-chromium/**'

provider:
name: aws
runtime: nodejs18.x
stage: prod
region: eu-west-1
timeout: 60
timeout: 90
iam:
role:
statements:
Expand All @@ -42,6 +43,8 @@ functions:

instagram:
handler: instagram.handler
layers:
- arn:aws:lambda:eu-west-1:725824641220:layer:chromium:3 # Chromium v117
events:
- schedule: cron(0 20 ? * FRI *)

Expand Down

0 comments on commit 07922b5

Please sign in to comment.