sst / ion

SST v3
https://sst.dev
MIT License
1.99k stars 231 forks source link

Sveltekit with Lambda edge gives error even tho i dont have environment variables set. #1194

Open AdityaBanik opened 5 days ago

AdityaBanik commented 5 days ago

MyWebCdnDistribution sdk-v2/provider2.go:509: sdk.helper_schema: creating CloudFront Distribution: operation error CloudFront: CreateDistributionWithTags, https response error StatusCode: 400, RequestID: c02658b9-bf27-4142-80eb-dcfde2894aa1, InvalidLambdaFunctionAssociation: The function cannot have environment variables. Function: arn:aws:lambda:us-east-1:913524907086:function:cyclixfrontend-production-MyWebEdgeServerFunction:4: provider=aws@6.54.1 MyWebCdnDistribution 1 error occurred:

AlperSakarya commented 4 days ago

can you also share the related parts of your SST config? I have lambdas with env variables that are working fine with 3.5.51