AWS Lambda pipeline setup
There are different ways you can set up a code pipeline to deploy Lambda functions for continuous delivery. In this example, we are going to use the AWS CLI to do so. In the last chapter, we learned how we can add several stages to our pipeline and use it for code scanning, testing, manual approval, and so on. Here, we will keep things simple and will have only two stages in the pipeline: one is for the source and the other one is for CodeBuild and the deployment of the Lambda function. Let’s start creating the pipeline by following these steps:
- As a first step to creating the pipeline for our project, we need to create the infrastructure and resources needed by the pipeline, such as the CodeBuild project, Lambda function, required roles for deployment, and so on. To create the required roles and resources, we have created a Terraform template. You can download the template from our GitHub repository here: https://github.com/PacktPublishing...