DeepakChoudhari / file-processor-lambda

AWS Lambda function that reads data from S3 bucket and stores into Dynamodb table. Provisions infrastructure using AWS CDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file-processor-lambda

AWS Lambda function that reads data (.csv file) from a configured S3 bucket and stores into Dynamodb table. Infrastructure provisioning is setup using AWS CDK.


Prerequisites

  1. npm
  2. aws cli
  3. aws cdk
  4. sam cli (Optional)
  5. Docker Desktop

Setup instructions

  1. Install dependencies from root directory from the location of package.json

    npm i
  2. Change current directory to file-processor-infra.Build the project using AWS CDK CLI. This will create the AWS cloud formation template in file-processor-infra/cdk.out folder

    cdk synth
    
  3. Deploy the stack using AWS CDK.

    cdk deploy
  4. Once the above command is successful, copy the test .csv file to the bucket by running below command. The testdata.csv is located at file-processor-app/test/testdata.csv

    aws s3 cp testdata.csv s3://csv-input-data-bucket/testdata.csv

About

AWS Lambda function that reads data from S3 bucket and stores into Dynamodb table. Provisions infrastructure using AWS CDK.

License:MIT License


Languages

Language:TypeScript 71.7%Language:JavaScript 28.3%