🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.

Google Drive

Internet-related services and products

Go to site

Integrate the Google Drive API with the AWS API

Setup the Google Drive API trigger to run a workflow which integrates with the AWS API. Pipedream's integration platform allows you to integrate Google Drive and AWS remarkably fast. Free for developers.

Connect Google Drive

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    google_drive: {
      type: "app",
      app: "google_drive",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.google_drive.$auth.oauth_access_token}`,
      },
    })
  },
})

Connect AWS

module.exports = defineComponent({
  props: {
    aws: {
      type: "app",
      app: "aws",
    }
  },
  async run({steps, $}) {
    const AWS = require("aws-sdk")
    const { accessKeyId, secretAccessKey } = this.aws.$auth
    
    /* Now, pass the accessKeyId and secretAccessKey to the constructor for your desired service. For example:
    
    const dynamodb = new AWS.DynamoDB({
      accessKeyId, 
      secretAccessKey,
      region: 'us-east-1',
    })
    
    */
  },
})