AWS Serverless Automating Your Deployment Pipeline
Automating Your Deployment Pipeline
You don't want to manually approve or test code inside source control.
A CI/CD pipeline can assist you with software release procedures and quality checks.
A CI/CD means Continuous Integration/Continuous delivery.
Without CI/CD, a person must manually approve each piece of code placed into source control.
A CI/CD pipeline can assist you with that.
Steps in a CI/CD pipeline include:
- Source phase
- Build phase
- Test phase
- Production phase
Automating Your Deployment Pipeline Video
W3schools.com collaborates with Amazon Web Services to deliver digital training content to our students.
The Source Phase
It is the first phase.
A source code repository is used to monitor changes and establish versioning.
The build environment receives and prepares the source code.
This involves compiling, linting, and validating the source code quality.
The build Phase
The build environment receives and prepares the source code.
This involves compiling, linting, and validating the source code quality.
If a build is successful, it means the code is valid and goes to the testing phase.
The testing Phase
The test phase checks code quality in a production-like environment.
Testing integration with other live systems, load, UI, and penetration testing are common examples.
The production Phase
This is the last phase.
If a build and testing are successful, the code is deployed to the end-user.
As a best practice, keep each environment's resources and activities separated.
This method gives both isolation and scalability.
AWS CodePipeline
AWS CodePipeline allows you to simulate the complete code release process.
AWS CodePipeline is meant to let you quickly deploy your code.
It includes automated operations (such as build, test, and deploy) and transitions.
Every time a code change is made, a pipeline may be started to build, test, and deploy it.
AWS CodeCommit
AWS provides AWS CodeCommit for the source phase.
CodeCommit is a managed source control service.
You don't need to manage, backup, or scale your own source control servers.
It also supports current Git commands.
AWS CodeBuild
AWS CodeBuild is a controlled and serverless service.
AWS CodeBuild automatically scales based on the number of build jobs.
It is simply pay as you go service.