Developing Serverless APIs using AWS Toolkit
Run, build, and deploy serverless functions in PyCharm.
AWS Lambda lets you run code without provisioning or managing servers. It is similar when it comes to PyCharm, which helps developers to build, ship and deploy serverless functions.
This tutorial helps to understand how we can easily write serverless functions and easily deploy through PyCharm.
Note: We'll be using PyCharm Professional Edition for all the steps in this tutorial. We will also be using MongoDB database as our primary datastore. For that we will be relying on MongoDB Atlas.
Background on Serverless
Introduce Microservices, AWS SAM (Serverless Application Model)
Project Setup
Install AWS SAM (Serverless Application Model), AWS CLI & finally PyCharm Plugin AWS Toolkit.
Exploring Project Structure
Launching up project in PyCharm Professional, installing plugin and exploring the project layout.
Invoking Functions Locally
Execute Lambda function inside a container through PyCharm Professional.
Setting Up a Database in MongoDB Atlas
Connect MongoDB smoothly by connecting through Pycharm Professional to explore the database GUI.
Writing REST APIs
Beginning CRUD (Create, Read, Update, Delete) Operations
Securing APIs with JSON Web Tokens (JWT)
Adding Custom Authorizers in Lambda functions
Testing
Writing unit tests of our functions that we deploy to AWS Lambda, to ensure everything works.
Deploying Functions
Use PyCharm Professional to deploy your Lambda APIs.
Cleanup
Removing Resources from AWS Console