Skill 3.3.5
Use AWS CodePipeline to orchestrate CI/CD pipelines (for example, invoke pipelines from linked code repositories, orchestrate progression through multiple environments).
Key Concepts
A CodePipeline source action watches a repository branch through CodeConnections (or receives EventBridge events from CodeCommit), and each push starts a new execution. The source revision is passed as an artifact to CodeBuild, which runs the build and tests defined in buildspec.yml, and then to deploy actions such as CodeDeploy, CloudFormation, ECS or Elastic Beanstalk.
Pipeline V2 types support triggers filtered by branch, file path or Git tag, so for example only pushes to main, or only tags like v*, start a release. Builds can also run on pull requests to check changes before they are merged.
A typical CodePipeline has a source stage, a build stage, then deploy stages for test, staging and production. Each stage deploys the same artifact with environment-specific parameters, and test actions or manual approval actions gate promotion to the next stage. Cross-account actions let one pipeline deploy into separate environment accounts using roles in those accounts.
Step Functions can orchestrate custom deployment workflows, and CDK Pipelines generates self-updating pipelines that deploy CDK applications through multiple stages.