3,125
questions
0
votes
0
answers
15
views
Serverless Offline is using the environment variables from actual AWS SSM instead of local .env file
I have a Nest JS Lambda backend and I am using serverless-offline module to run it locally and connect to my local Postgres database.
My serverless.yml file looks like
service: wbx-borrower-onboarding-...
0
votes
1
answer
15
views
Serverless Framework App Sync Plugin - Add AWS Managed Rule
I have tried to use the documentation for the App Sync plugin to add an AWS managed rule but I am unable to get it add the rule, instead I get the following error:
Error:
UPDATE_FAILED: GraphQlWaf (...
-2
votes
0
answers
16
views
Cloudflare not starting, I have written a simple backend logic using hono [closed]
X \[ERROR\] service core:user:backend: Uncaught TypeError: Cannot read properties of undefined (reading '\_handle')
at null.<anonymous> (index.js:337401:20)
at null.<anonymous> (index.js:...
1
vote
1
answer
22
views
Serverless Framework Packaging Includes node_modules
I'm using serverless framework to deploy lambdas in AWS. While deploying I'm getting the node_modules too attached with my handler. Though i excluded the node_modules folder in my serverless.yml file.
...
0
votes
1
answer
17
views
headers[headerName].trim is not a function
Here is my code:
import { CopyObjectCommand, S3Client } from '@aws-sdk/client-s3';
const s3Client = new S3Client({});
...
const params = {
Bucket: "destination_bucket", // Destination ...
0
votes
0
answers
25
views
How do I include a JavaScript Lambda layer into a TypeScript Serverless Framework project?
I'm working with an AWS Lambda Layer called "helpers". It is written in JavaScript as an ES module. I'm trying to set up a new TypeScript project using Serverless Framework. I want to import ...
0
votes
0
answers
25
views
Creating Glue table with serverless.yaml gives 'Table name must not contain uppercase characters' error even if name is in lower case
I am trying to create a AWS Glue Database and Table using Serverless framework. Here is the yaml code that I have been using to test:
org: testorg
service: TestAthenaServerless
provider:
name: aws
...
0
votes
0
answers
2k
views
Serverless Framework - Compose Error: Cannot resolve ‘${param:xxx}’ variable at yyy
I hope someone can look at this and tell me what's wrong... been reading and beating my head against the wall all day long. This has got to be something super simple...
Here's my project definition:
...
0
votes
1
answer
48
views
How can I configure Google Cloud Run and sharp so that my generated images contain text instead of boxes?
I've built a service using Node.js & sharp that composites some text onto a background image:
exports.social_get_result = async function(req,res,next){
// Path to the existing background image
...
0
votes
1
answer
21
views
Unable to create EFS using Serverless deploy
When I try to deploy my application with sls deploy --stage dev, it runs for several minutes and I can see most of the resources created in my AWS account, but it finally fails with:
✖ An error ...
1
vote
0
answers
44
views
Sequelize (Aurora Postgres) with RDS Proxy on Lambda
I am trying to use the AWS RDS Proxy on my lambda to proxy our database (Aurora Postgres). I can connect with Sequelize to my DB directly, but I am unable to connect with the proxy. I wasn't able to ...
0
votes
0
answers
29
views
Not able to run the bitbucket pipeline for deploying AWS Serverless sample app
I have a sample site that includes storing the index.html page on s3 and then using the API gateway to place the data inputted through the site to the dynamodb.
The code is working perfectly through ...
0
votes
1
answer
21
views
No such file or directory: '/var/task/requirements.txt' when using serverless-python-requirements plugin with dockerizePip
I am encountering an issue while trying to deploy my Serverless framework application using the serverless-python-requirements plugin with the following configuration:
custom:
pythonRequirements:
...
1
vote
1
answer
87
views
Error: Cannot find module './xhr-sync-worker.js' when using jsdom in AWS Lambda with serverless-esbuild
I'm trying to use jsdom in an AWS Lambda function, bundled with serverless-esbuild. However, I'm encountering the following error:
[WARNING] "./xhr-sync-worker.js" should be marked as ...
0
votes
0
answers
46
views
Serverless function communication between dependent services in Gcp
I have two GCP serverless functions as below
Courser Http function
Assessment Http Function
The course has one to many relationships with assessment. One course can have multiple assessments. ...