Reputation: 501
I want to use Google Drive API in AWS Lambda using Node.JS. Is there any Google drive library for this which can allow me to copy file from one folder and paste it into another in AWS Lambda function without using oAuth as I am not sure if oAuth would be supported on AWS lambda.
I came across this: https://github.com/googleapis/google-api-nodejs-client/tree/master/samples/drive
but it doesn't look like it would work in AWS as it is using oAuth.
Edit: I am only going to access my account.
Any help is appreciated.
Upvotes: 3
Views: 6887
Reputation: 3243
Yes it is entirely possible. I would Start Here and also look at the examples here. The fact that it's using oAuth doesn't prevent it from working in AWS or a lambda. You will need to setup and application in google to be allowed to oAuth against it, and information about that can be found Here.
Upvotes: 5