Automating the deployment of Lambda functions
In this section, we will see how to build a pipeline to automate the deployment process of the Lambda functions built in the previous chapter in the following different ways:
- AWS-managed solutions, such as CodePipeline and CodeBuild
- On-premise solutions, such as Jenkins
- SaaS solutions, such as Circle CI
Continuous Deployment with CodePipeline and CodeBuild
AWS CodePipeline is a workflow-management tool that allows you to automate the release and deployment process of your software. The user defines a set of steps that form a CI workflow that can be executed on AWS-managed services, such as CodeBuild and CodeDeploy, or third-party tools, such as Jenkins.
In this example, AWS CodeBuild will be used to test, build, and deploy your Lambda function. Therefore, a build specification file with the name of buildspec.yml
should be created in the code repository.
buildspec.yml
defines a set of steps that will be executed on the CI server as follows:
version:...