Hi, I need help to deploy my serverless app to AWS...
# orm-help
l
Hi, I need help to deploy my serverless app to AWS Lambda. Is there anyone here available to assist?
j
Does not seem the appropriate place for that 🙂 But what is your problem exactly ?
l
Hi Jidé, I am new to slack. Thanks for the tip on étiquette. My app was using chromeless with AWS Lamda. But the aws account where it was deployed has been discontinued and I need someone to deploy it for me in our AWS account. Can you do that?
j
Hi Iribeiro. Slack has workspaces, each related to a particular subject, this workspace being dedicated to prisma, you should ask things related to prisma here... There may be an aws dedicated slack somewhere. Regarding your request it is not a good idea to ask someone to do this for you, it’s something you or a colleague should do, giving access to your account to a stranger definitely does not sound like a good idea.
But if you need advices on how to do it, I can help maybe.
l
I appreciate Jidé. So what my Chromeless/Lambda app does is visit a website and download pdfs that are uploaded to google-drive. and the readme states is is deployed via up! Loves tj <3
it used two files that I don’t have: key.json (for google jwt authentication) up.json with environment vars (to authenticate the request with basic auth)
the key.json I can get from my google cloud platform. The up.json I don’t know what it is
j
seems you will have to guess the config that was used... did you look at up! docs ? https://up.docs.apex.sh/#configuration
l
thanks! Let me see what I can find about config in my files
Hi Jidé, I have been able to solve the up.json and deploy the code to AWS Lambda. It still needs the key.json somewhere to google jwt authentication. Can you help me understand where the key.json shloud be placed?
Here is where the key.json is requested:const google = require(‘googleapis’) const key = require(‘../key.json’) const jwtClient = new google.auth.JWT( key.client_email, null, key.private_key, [’https://www.googleapis.com/auth/drive'], null ) const jwtAuth = new Promise((resolve, reject) => { jwtClient.authorize(function(err, tokens) { if (err) { console.log(‘error jwt’, jwtClient) reject(err) } else { resolve(jwtClient) } }) }) module.exports = async () => { const auth = await jwtAuth.catch(err => console.log(err)) return google.drive({ version: ‘v3’, auth }) }
Jidé, I have been able to solve key.json and I am now running into another issue that seems to be totally related to prisma/chromeless. Can you still help me out?