Deploying a web app using Lambda, API Gateway, DynamoDB and S3 with Serverless Framework
Make sure you have an AWS account with a profile that has right permissions to create resources needed for this demo.
cd lambda- Install serverless
npm install -g serverless sls deploy- this command will create S3 buckets, Dynamo-db table, Lambda and ApiGateway. NOTE: This might cause charges to your AWS account. Make sure to clean up after you are done.
cd app-client- Create the production site
npm run build - Copy the site to S3 bucket.
aws s3 sync ./build s3://tp-idea-board
- Clean up s3 bucket `aws s3 rm s3://tp-idea-board --recursive
- Clean up resources
sls remove