Questions tagged [claudiajs]
46 questions
1
vote
1 answer
Query in catch block after reject
I'm working on an application in reactjs that let people publish some post with hashtags, mentions and media. I start saving post in db, after a lot of controls I need to remove the post from DB if some error happen. Here the functions with the…

red
- 1,529
- 1
- 12
- 33
1
vote
1 answer
Excluding part of a npm package from a claudia.js build
I'm currently using claudia.js to deploy serverless functions to AWS Lambda. However, due to size limitations I run into the following error:
RequestEntityTooLargeException: Request must be smaller than 69905067 bytes for the CreateFunction…

Andrew Stroup
- 320
- 2
- 14
1
vote
2 answers
Should I use scan or query?
I'm having a tough time in DynamoDB with selecting a group of entries between two dates. My dates are strings and formatted simply as "2018-01-01".
Should I be using query or scan? Do my params look ok? The operation seems to work, but I get no…

sublimegeek
- 110
- 1
- 8
1
vote
1 answer
Links in Express app missing API Gateway stage with Claudia JS
I've deployed a very basic Express app through Claudia JS. It's working pretty well, but any links or redirects don't keep the API Gateway stage and so don't work.
For example I have the app deployed at…

kiml42
- 638
- 2
- 11
- 26
1
vote
2 answers
Credential not load in Claudiajs hello word example for aws
I try to use aws with ClaudiaJS so first I downlolad hello world example from claudiajs github and then on my aws create a user with these AWSLambdaFullAccess,IAMFullAccess and AmazonAPIGatewayAdministrator and then configure .aws/credentials file…

MBehtemam
- 7,865
- 15
- 66
- 108
1
vote
3 answers
ClaudiaJS and pg-pool: how to wrap in promise
I use ClaudiaJS to deploy the serverless API (Lambda + API Gateway). In my API, I access to RDS Postgres using pg-pool.
What I have done:
In app.js
var ApiBuilder = require('claudia-api-builder'),
api = new ApiBuilder();
module.exports = api;
var…

Phong Vu
- 2,726
- 6
- 24
- 52
1
vote
1 answer
Unable to import module 'index': Error in aws cloud watch logs while using claudia.js
Unable to import module 'index': Error in aws cloud watch logs.
upload lambda using claudia works fine but api does not work and cloud watch logs displays following errors:
Unable to import module 'index': Error
at Function.Module._resolveFilename…

Dhruv Goradiya
- 85
- 12
1
vote
2 answers
CircleCI can't run "claudia update"
Im running CircleCI and Claudia.js to deploy my node.js code to AWS Lambda.
Here is my package.json (scripts part):
"scripts": {
"deploy": "claudia create --handler lambda.handler --deploy-proxy-api --region eu-central-1",
"update": "claudia…

Simon Guldstrand
- 488
- 1
- 5
- 24
1
vote
1 answer
How to replace 'latest' in the output lambda function url? How could I make my own resource?
I am new to AWS Lambda.
As given in the documentation, I deployed the following sample on AWS Lambda using Claudia:
'use strict';
console.log('Loading hello world function');
exports.handler = function (event, context, callback) {
var name =…

Suhail Gupta
- 22,386
- 64
- 200
- 328
0
votes
0 answers
ClaudiaJS - How to add S3 write permission to Lambda Function
My ClaudiaJS API is working fine but I cannot store images files on an S3 bucket.
The problem is because the Lambda Function has no permission to Write on S3.
Question: How can I tell ClaudiaJS to include an S3 Write permission into the Lambda…

Carlos
- 142
- 2
- 10
0
votes
1 answer
Why am I not able to access the HTTP call in this node.js app?
I am trying to build a simple Node Js bot with Twilio, AWS & Claudia Bot.
I'm trying to access this public API, and specifically the "text" part whenever a user's text contains the word "Fact". Currently, I am able to access the first API when a…

Simbeul
- 441
- 4
- 11
0
votes
1 answer
Deploy Lambda in root rather than in 'latest' with claudiajs
According to claudiajs tutorial and many other tutorials, by default, it's always deployed in latest folder rather than the root.
Is there a way to deploy to the root (i.e. https://8x7uh8ho5k.execute-api.us-east-1.amazonaws.com), rather than in…

Jingles
- 875
- 1
- 10
- 31
0
votes
1 answer
How to use nodemailer with claudia-api-builder
I am trying to create a simple REST API I can post an email to, to then email myself. I am using nodemailer and had set it up as an express app and it all worked fine confirming my authentication etc. is fine. I wanted to host it online so I have…

Brooklyn
- 73
- 1
- 12
0
votes
1 answer
How to add changes to lambda using claudiajs
I am using claudia js to deploy code in lambda using serverless framework.I run this claudia generate-serverless-express-proxy --express-module app which creates a lambda.js file and claudia create --handler lambda.handler --deploy-proxy-api…

dave Miller
- 304
- 1
- 6
- 16
0
votes
2 answers
AWS Lambda Node - restart after interruption
I've a strange problem, I have a backend in aws lambda based on claudia.js api builder.. I've discovered a strange thing, when I register as a new user and the scripts is rejected the lambda retrieve error and stop the execution and in DB no new…

red
- 1,529
- 1
- 12
- 33