Closed robbymarston closed 3 months ago
We don't work in graviton instances, please verify that you are runing in x86
Thank you for the quick response (and fantastic work) @Sparticuz. I am using x86. Here's the full template (with ARNs redacted):
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: An AWS Serverless Application Model template describing your function.
Resources:
HelloWorld:
Type: AWS::Serverless::Function
Properties:
CodeUri: .
Description: ''
MemorySize: 512
Timeout: 3
Handler: index.handler
Runtime: nodejs20.x
Architectures:
- x86_64
EphemeralStorage:
Size: 512
EventInvokeConfig:
MaximumEventAgeInSeconds: 21600
MaximumRetryAttempts: 2
FunctionUrlConfig:
AuthType: NONE
InvokeMode: BUFFERED
Layers:
- <ARN>
PackageType: Zip
Policies:
- Statement:
- Effect: Allow
Action:
- logs:CreateLogGroup
Resource: <ARN>
- Effect: Allow
Action:
- logs:CreateLogStream
- logs:PutLogEvents
Resource:
- >-
<ARN>
SnapStart:
ApplyOn: None
RuntimeManagementConfig:
UpdateRuntimeOn: Auto
512 memory size is too small, try putting it over 1500 megs
Using the chromium-min
package, as well as upping both the max. memory and timeout values seemed to have done the trick. Thank you!
Environment
chromium
Version: 122.0.0puppeteer
/puppeteer-core
Version: 22.3.0Expected Behavior
The browser process should start up normally.
Current Behavior
The browser process does not start; instead, throwing the following error:
Steps to Reproduce
puppeteer-core
andchromium
.Possible Solution