<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dropbox API and AWS Lambda in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-and-AWS-Lambda/m-p/669713#M30280</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a web app that is is taking files and uploading them to an S3 bucket. I have written a Lambda function to upload the files from the bucket to a Dropbox folder with the API. I tested it locally and it worked fine. I created a directory locally, added my script, used pip to install the Dropbox API, zipped those files, and upload the zip file to AWS.&amp;nbsp;When I try to import Dropbox in my Python script on AWS, Dropbox can't be imported. This could be an AWS issue but I just want to check if the Dropbox API supports use with AWS Lambda.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 10:03:37 GMT</pubDate>
    <dc:creator>martinweiss</dc:creator>
    <dc:date>2023-03-21T10:03:37Z</dc:date>
    <item>
      <title>Dropbox API and AWS Lambda</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-and-AWS-Lambda/m-p/669713#M30280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a web app that is is taking files and uploading them to an S3 bucket. I have written a Lambda function to upload the files from the bucket to a Dropbox folder with the API. I tested it locally and it worked fine. I created a directory locally, added my script, used pip to install the Dropbox API, zipped those files, and upload the zip file to AWS.&amp;nbsp;When I try to import Dropbox in my Python script on AWS, Dropbox can't be imported. This could be an AWS issue but I just want to check if the Dropbox API supports use with AWS Lambda.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 10:03:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-and-AWS-Lambda/m-p/669713#M30280</guid>
      <dc:creator>martinweiss</dc:creator>
      <dc:date>2023-03-21T10:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API and AWS Lambda</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-and-AWS-Lambda/m-p/669874#M30282</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1646566"&gt;@martinweiss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Dropbox provides Python SDK, but doesn't support any particular work environment explicitly; it's your responsibility. As about AWS Lambda, you need to add in some way any non builtin features (including Dropbox SDK and all possible its non builtin dependencies). What is missing actually can be seen in the error message itself; what exactly can't be imported? 🧐 You can add missing code as part of the deployment package or as independent layer. Don't forget to associate corresponding layer with your Lambda if you select this way (it's preferable).&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Additional troubles can rise up if you don't ensure valid POSIX file attributes or (when binaries are distributed) incompatible Python version. Take care!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 14:02:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-and-AWS-Lambda/m-p/669874#M30282</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-21T14:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API and AWS Lambda</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-and-AWS-Lambda/m-p/670812#M30306</link>
      <description>&lt;P&gt;Hi martinweiss,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SDK should work on AWS; we don't explicitly test against it but it should work. Based on the steps you described, the SDK may not be installed in the directory that you are uploading. You may want to refer to AWS's steps for "Deployment package with dependencies" located &lt;A href="https://docs.aws.amazon.com/lambda/latest/dg/python-package.html" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 23:42:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-and-AWS-Lambda/m-p/670812#M30306</guid>
      <dc:creator>Scott-DB</dc:creator>
      <dc:date>2023-03-23T23:42:31Z</dc:date>
    </item>
  </channel>
</rss>

