Demo of creating an AWS Lambda Function

Nidhi
3 min readFeb 27, 2021

In this blog, we will run a Demo of creating an AWS Lambda Function which will convert a csv file into a json file.

Prerequisite

  1. Clone this git repo
  2. Refer this blog for basic understanding of AWS Lambda

For this we will use S3 bucket as a source where we will store the csv file that will trigger the lambda function and convert the file in json and store it in another bucket.

We will be creating below resources. You can refer the git repo

  1. Create source S3 bucket
  2. Create target S3 bucket
  3. Create a lambda function in python
  4. Zip the file
  5. Upload a zip file in source S3 bucket
  6. Create a lambda function
  7. Create an IAM role and add permission
  8. Create a trigger
  9. Test it

Create source and target bucket

cd Lambda
python create_s3_bkt1.py
python create_s3_bkt2.py

--

--