Skip to content

AninditaGuha98/Serverless-Application-using-AWS-Lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless-Application-using-AWS-Lambda

List of tasks:

  • Uploaded 400 files from a directory one at a time to the s3 bucket created in the AWS educate account.
  • Once a file is added to the bucket, an event must be triggered which calls a function present in AWS lambda. This lambda function converts the text file into named entities.
  • The lambda function contains dependencies such as nltk and boto3. Nltk dependency needs to be explicitly added in the lambda function, however boto3 is present by default
  • For adding the dependency, the nltk_data and other related dependency must be added as a layer to the lambda function. This goes the same with other modules/dependencies if and when required.
  • The json file created of the named entities will then be transfered to another s3 bucket.
  • The second bucket will also have another lambda function associated with it, this lambda function will store the JSON file into the AWS RDS.
  • The second lambda function requires the mysql.connector library dependency which is added as a layer to it.

Points to note:

  • All the logs can be watched in the CloudWatch logs that is by default associated with every lambda function.
  • While creating the lambda function, the dependencies must be added as layer. AWS lambda only supports few libraries.
  • Policies for full access to s3 buckets must be attached to the lambda function in the IAM roles, by default every lambda function gets lambdaexecutionroles
  • S3 trigger must be added to the lambda function explicitly. This trigger specifies by what type of event the lambda function will be called, specify that.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages