CI and CD workflow
In this section, we will create an end-to-end CI and CD pipeline using AWS CodePipeline and AWS CloudFormation.
Before you start,you must have a few resources available to create a CD pipeline. We have covered most of these resources in the previous chapters.
Note
You should create all the required resources within the same AWS region.
The prerequisites are as follows:
- AWS CodeBuild: You can use AWS CodeBuild to build, test, and package your serverless application
- AWS CloudFormation: You can use AWS CloudFormation to deploy your serverless application
- AWS CodeDeploy: You can use AWS CodeDeploy to deploy updates on your serverless application
- AWS CodePipeline: You can use AWS CodePipeline to model, visualize, and automate the steps required for the serverless application
The following section will describe how to integrate all these tools from AWS CodePipeline to automate the deployment of serverless applications. You have to create an AWS CloudFormation role and attach the AWSLambdaExecute...