supabase-community / supabase-on-aws

Self-hosted Supabase on AWS
Apache License 2.0
417 stars 61 forks source link

Deployment fails with error: Resource handler returned message: "'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008 (Service: Lambda, Status Code: 400 #83

Closed tolikkostin closed 1 year ago

tolikkostin commented 1 year ago

Bug report

Describe the bug

Deployment fails with error: Resource handler returned message: "'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008 (Service: Lambda, Status Code: 400

Supabase: creating CloudFormation changeset...
9:23:28 AM | CREATE_FAILED        | AWS::Lambda::Function                         | StudioRepositoryImportFunctionF87C7D62
Resource handler returned message: "'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008 (Service: Lambda, Status Code: 400, Request ID: 419ca9ff-069e-4915-83d3-fdbecfbf06ad)" (RequestToken: 5b39077e-76e
3-3c3d-714e-7ead45d97aff, HandlerErrorCode: InvalidRequest)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

git clone https://github.com/mats16/supabase-on-aws.git
cd supabase-on-aws
yarn install
cdk bootstrap
cdk deploy Supabase

Expected behavior

Succesful supabase installation.

Screenshots

Screenshot 2023-11-22 at 09 27 19

System information

Additional context

Seems that error in this line. If I specify 3008 the deployment works.

mats16 commented 1 year ago

@tolikkostin Thank you for your reporting.

This issue seems to be dependent on your AWS account. https://stackoverflow.com/questions/70943739/aws-lambda-memorysize-value-failed-to-satisfy-constraint

Could you please contact AWS Support?

tolikkostin commented 1 year ago

@mats16 Thanks, got it.