From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

Deploying codes with external dependencies to AWS Lambda

Deploying codes with external dependencies to AWS Lambda - Amazon Web Services (AWS) Tutorial

From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep

Deploying codes with external dependencies to AWS Lambda

- [Lecturer] Now let's talk about how to deploy codes with external dependencies to AWS Lambda. Let me show you something. Say I have this Python script on my laptop, and what this script does is that it converts text files into CSV files. As you can see here in the first two lines of the code, I imported two dependencies to write this script. The first dependency is a module called re. And re is a built-in module in Python that allows you to check if a particular string matches a given regular expression. The second dependency is an external package called pandas, which is commonly used for data analysis jobs. Now let's run this code and see if it works. As you can see on the leftmost side of the VS code editor, the code generated a CSV version of this text file. And this is how I know that the code works. Okay so the question is, what if I want to migrate this code to AWS and deploy it as Lambda function? Right now, it…

Contents