At codeRISE, while picking up a case of automation using CI/CD pipeline with ClaudiaJS for AWS Lambda, our main focus was to demonstrate the ease of use and flexibility that codeRISE platform offers.
From – ClaudiaJS – “AWS Lambda and API Gateway are incredibly flexible, but they can be tedious to set up, especially for simple scenarios. Running Node.js functions requires you to iron out quite a few quirks, that aren’t exactly well documented. Claudia automates all those steps for you.”
From – AWS – “AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume – there is no charge when your code is not running. With Lambda, you can run code for virtually any type of application or backend service – all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.”
We take that a step further – we will show you how you can easily define a CI/CD pipeline with ClaudiaJS for AWS Lambda using codeRISE.
Pre-requisite: You will need an AWS account with proper permissions to create IAM roles and Lambda functions.
Sources: All source files can be found here
So, let’s get started –
- Login to your codeRISE account. If you are new to codeRISE, please check this quick start guide.
- Click ‘Settings’ and enter your AWS credentials i.e. AWS Access Key Id and AWS Secret Access Key:
- Click ‘Build’ to trigger a new build
- The build will invoke ClaudiaJS which will Create and Test the AWS Lambda function.
- You can also login to your AWS account and view the Lambda function created.
That’s it for now – in part-2 of this blog, we will show you a more advanced Lambda function with database connectivity to AWS RDS service and cover Continuous Deployment in detail.