Repository files navigation Data-Analytics-on-Big-Data-Using-AWS-Serverless
Abishek Arumugam Thiruselvi ('40218896')
Steps to install, run and test the application. Prerequisites are npm installed in the local machine.
Install AWS CLI in the local terminal with the necessary user access [4].
Configure AWS CLI for CodeCommit [5].
Create a layer with the required library for running the application, i.e., protobuf and jwt [6].
In the local terminal, run the command “npm install -g serverless”
In the local terminal, run the command, “sls create -t aws-nodejs -p ”
Run “npm init -y”
Run “npm install --save aws-sdk protobuf jwt serverless-offline”
Put the files “handler.js”, “buildspec.yml”, “userpackage.proto” and “serverless.yml”
Create a CodeCommit repository in AWS
Run “git init”
Run “git add .”
Run “git commit -am “first commit””.
Run “git remote add origin ”.
Run “git push --set-upstream origin”
Create a pipeline with the below [7].
Add CodeCommit as a repository.
Create a CodeBuild using environment variables as “buildspec.yml” and ENV_NAME=prod-env”.
Select “skip stage” in the deployment stage, as it’s serverless.
CodePipeline starts building, and an endpoint will be generated for the application.
Add the data sets to the S3 bucket created.
Copy the “event.json” from the repository and use postman or API Gateway or the lambda function generated to test the application functionality.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.