In my current project, we are using serverless framework to package/deploy our serverless application on AWS.
Deployment pipeline automates the terraform & serverless framework commands ,provision AWS infra resources and package/deploy application to AWS.
Infrastructure as Code (IaC) principle was key factor in designing this pipeline.
Below is the flow diagram of the implementation:
- We use Trunk-Based Git Branching model for development.
- Source code repository is Bitbucket and we use bitbucket pipelines as our CI/CD pipeline.
- Above diagram was created using draw.io
Hope this helps.