CI/CD pipelines for serverless
CI/CD for serverless is not very different from the normal CI/CD process. At the end of the day, you are going to build and test some code and then deploy it along with some services into the cloud. While there is complicated logic involved in this, it is good to ensure the entire process and pipeline are automated. Some of the common steps in the CI/CD stages are as follows:
- Code commits with the right branching strategy.
- Linting: Implement this for application code as well as the IaC code you might have as part of your project.
- Run security scanning for code: Especially important in a cloud context, predominantly to prevent credentials exposure.
- Policy validations against IaC: To see whether any of the service creations are violating organizational policies or resource limitations.
- Run unit and integration tests: Locally run on the CI/CD machines, integration tests also need to deploy services to the test environment as a prerequisite...