Back to results for “CI/CD”
AWS › AWS CodePipeline, CodeBuild & CodeDeploy (CI/CD)

What are AWS CodePipeline, CodeBuild, and CodeDeploy, and how do they work together to form a CI/CD pipeline?

Beginner

Answer

AWS CodePipeline orchestrates the overall release process by defining a series of stages such as source, build, test, and deploy, CodeBuild compiles source code, runs tests, and produces deployable build artifacts, and CodeDeploy automates the actual deployment of those artifacts to compute targets like EC2 instances, ECS services, or Lambda functions, together forming a complete continuous integration and continuous delivery pipeline from code commit to production deployment.
aws codepipeline create-pipeline --pipeline file://pipeline-definition.json
Real-world example A development team sets up a pipeline where every code push to their main branch automatically triggers CodePipeline, which runs CodeBuild to compile and test the code, then uses CodeDeploy to roll the new version out to production servers.

Common follow-ups: How does this trio compare to using a third party CI/CD tool like Jenkins or GitHub Actions?;Can CodePipeline integrate with source repositories outside of AWS, like GitHub?